Created attachment 433781 [details] Native systemd file for crond Description of problem: The attached file is a native systemd file for upcoming F14 Feature [1] Please read [2] on how to installing systemd Service files. 1.http://fedoraproject.org/wiki/Features/systemd 2.https://fedoraproject.org/wiki/User:Johannbg/QA/Systemd/Daemon#Installing_Systemd_Service_Files If you have any question dont hesitate to ask them on this bug report. Thank you. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Same trouble as in at daemon #617320. Why should daemon runs in foreground? What about sysconfig file? [Unit] Description=Command Scheduler After=syslog.target [Service] ExecStart=/usr/sbin/crond -n [Install] WantedBy=multi-user.target
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle. Changing version to '14'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Here's the suggested unit file with interpretation of sysconfig: <snip> [Unit] Description=Command Scheduler After=syslog.target [Service] EnvironmentFile=/etc/sysconfig/crond ExecStart=/usr/sbin/crond -n $CRONDARGS [Install] WantedBy=multi-user.target </snip>
BTW, it is not sufficient to just drop the .service files into /lib/systemd/system. It is also necessary to enable it when upgrading from an old sysv-only rpm. How to implement that in the spec file with minimal work is documented in daemon(7): http://0pointer.de/public/systemd-man/daemon.html#id2562029
*** Bug 656864 has been marked as a duplicate of this bug. ***
+1 for Lennart's version https://bugzilla.redhat.com/show_bug.cgi?id=617324#c3
(In reply to comment #1) > Same trouble as in at daemon #617320. > > Why should daemon runs in foreground? What about sysconfig file? #617320 contains answers to these questions I hope.
yum upgrade [..] Czyszczenie : cronie-anacron-1.4.6-4.fc15.x86_64 49/78 Job failed. See system logs and 'systemctl status' for details. Job failed. See system logs and 'systemctl status' for details. Job failed. See system logs and 'systemctl status' for details. Job failed. See system logs and 'systemctl status' for details. After an upgrade systemctl status cron.service cron.service Loaded: error Active: inactive (dead)
Sorry, I made a typo in command systemctl status crond.service crond.service - Command Scheduler Loaded: loaded (/lib/systemd/system/crond.service) Active: active (running) since Sun, 12 Dec 2010 18:51:51 +0100; 7min ago Main PID: 1703 (crond) CGroup: name=systemd:/system/crond.service └ 1703 /usr/sbin/crond -n -p Warning: Unit file changed on disk, 'systemctl --system daemon-reload' recommended.