FS#32158 - [cronie] crond.service symlink enable/disable does not work
Attached to Project:
Arch Linux
Opened by Yaff Are (yaffare) - Monday, 22 October 2012, 15:18 GMT
Last edited by Gaetan Bisson (vesath) - Monday, 19 November 2012, 00:58 GMT
Opened by Yaff Are (yaffare) - Monday, 22 October 2012, 15:18 GMT
Last edited by Gaetan Bisson (vesath) - Monday, 19 November 2012, 00:58 GMT
|
Details
Summary and Info:
The symlink from crond.service to cronie.service does not work as expected. You can start/stop, but you cannot enable/disable. Steps to Reproduce: [root@mypc ~]# systemctl disable crond.service Failed to issue method call: No such file or directory |
This task depends upon
Closed by Gaetan Bisson (vesath)
Monday, 19 November 2012, 00:58 GMT
Reason for closing: Fixed
Additional comments about closing: cronie-1.4.8-4 in [testing]
Monday, 19 November 2012, 00:58 GMT
Reason for closing: Fixed
Additional comments about closing: cronie-1.4.8-4 in [testing]
The reason for adding this was to avoid errors when arch-daemons.target is enabled, and people had DAEMONS=('crond' ...) in rc.conf.
With the symlink in place, this would then start cronie.service, rather than be a wrapper around the legacy /etc/rc.d/crond. Without the symlink this would in particular be problematic in case someone has enabled cronie.service, but still kept crond in DAEMONS (as both would be started).
It is correct that crond.service can not be enabled, but the "proper" service (cronie.service) must be used instead. On the one hand this is confusing as there is no indication which one should be used (unless you check which is a symlink and which is a real file), on the other hand it is good that people will not be able to start using crond.service, so that we will be able to drop it at some point.
I suppose the simplest fix would be to not show crond.service in "systemctl list-unit-files" (and then it will not appear in the bash completion for "systemctl enable cron<TAB>" either.
Alternatively, we could rip out all the symlinks, but I was hoping to do that once initscripts was thoroughly dead and buried and everyone had transitioned over successfully (as I still think it reduces problems).