Bug 617324 - Providing native systemd file for upcoming F14 Feature Systemd
Providing native systemd file for upcoming F14 Feature Systemd
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: cronie (Show other bugs)
rawhide
All Linux
low Severity medium
: ---
: ---
Assigned To: Marcela Mašláňová
Fedora Extras Quality Assurance
:
: 656864 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-22 15:05 EDT by Jóhann B. Guðmundsson
Modified: 2010-12-12 13:00 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-11-30 07:13:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Native systemd file for crond (135 bytes, text/plain)
2010-07-22 15:05 EDT, Jóhann B. Guðmundsson
no flags Details

  None (edit)
Description Jóhann B. Guðmundsson 2010-07-22 15:05:10 EDT
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:
Comment 1 Marcela Mašláňová 2010-07-23 07:32:12 EDT
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
Comment 2 Bug Zapper 2010-07-30 08:45:10 EDT
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
Comment 3 Lennart Poettering 2010-08-10 09:51:59 EDT
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>
Comment 4 Lennart Poettering 2010-08-11 09:50:56 EDT
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
Comment 5 Michał Piotrowski 2010-11-24 08:04:54 EST
*** Bug 656864 has been marked as a duplicate of this bug. ***
Comment 6 Michał Piotrowski 2010-11-24 14:53:10 EST
+1 for Lennart's version https://bugzilla.redhat.com/show_bug.cgi?id=617324#c3
Comment 7 Lennart Poettering 2010-11-24 16:56:13 EST
(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.
Comment 8 Michał Piotrowski 2010-12-12 12:57:00 EST
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)
Comment 9 Michał Piotrowski 2010-12-12 13:00:40 EST
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.

Note You need to log in before you can comment on or make changes to this bug.