Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Feature Request
Category Packages
Status Closed
Assigned To Thorsten Töpper (Atsutane)
Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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
Comment by Sébastien Luttringer (seblu) - Wednesday, 22 August 2012, 18:02 GMT
As Dave suggested on IRC, fcrondyn allow connections to daemon via socket.

$ 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.
Comment by Sébastien Luttringer (seblu) - Wednesday, 22 August 2012, 18:05 GMT
I looked into code and there only cons to start in background (fork+session) as systemd.exec prerequisite on fork are not reached.

Loading...