FS#31248 - [fcron] Use foreground mode in systemd service file
Attached to Project:
Community Packages
Opened by Sébastien Luttringer (seblu) - Wednesday, 22 August 2012, 17:17 GMT
Last edited by Thorsten Töpper (Atsutane) - Thursday, 03 January 2013, 22:58 GMT
Opened by Sébastien Luttringer (seblu) - Wednesday, 22 August 2012, 17:17 GMT
Last edited by Thorsten Töpper (Atsutane) - Thursday, 03 January 2013, 22:58 GMT
|
Details
Systemd prefer daemon be started as foreground without using
syslog. We can do this with fcron.
[OVERRIDDEN] /etc/systemd/system/fcron.service → /usr/lib/systemd/system/fcron.service --- /usr/lib/systemd/system/fcron.service 2012-06-12 22:41:11.000000000 +0200 +++ /etc/systemd/system/fcron.service 2012-06-02 17:47:11.718226770 +0200 @@ -2,9 +2,7 @@ Description=Cron Daemon [Service] -Type=forking -PIDFile=/run/fcron.pid -ExecStart=/usr/sbin/fcron +ExecStart=/usr/sbin/fcron --foreground --nosyslog [Install] WantedBy=multi-user.target |
This task depends upon
Closed by Thorsten Töpper (Atsutane)
Thursday, 03 January 2013, 22:58 GMT
Reason for closing: Upstream
Additional comments about closing: fcron 3.1.1 comes with its own unit
Thursday, 03 January 2013, 22:58 GMT
Reason for closing: Upstream
Additional comments about closing: fcron 3.1.1 comes with its own unit
$ ll /run/fcron.*
srwxrwxrwx 1 root root 0 2012-08-14 21:01 /run/fcron.fifo
-rw-r--r-- 1 root root 4 2012-08-14 21:01 /run/fcron.pid
We should add fcron.socket to complete a correct bootup.