Bug 617324
| Summary: | Providing native systemd file for upcoming F14 Feature Systemd | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jóhann B. Guðmundsson <johannbg> | ||||
| Component: | cronie | Assignee: | Marcela Mašláňová <mmaslano> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | rawhide | CC: | lpoetter, mkkp4x4, mmaslano, pertusus, tmraz | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-11-30 12:13:16 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Jóhann B. Guðmundsson
2010-07-22 19:05:10 UTC
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. |