Commit b95258c2 authored by Andreas Henriksson's avatar Andreas Henriksson

Adjust and ship the cronie.service file

This should give a native systemd unit that masks the init script.
parent 90ebbaba
From: Andreas Henriksson <andreas@fatal.se>
Subject: Adjust the cronie.service file for debian use
Use default file instead of sysconfig, as shipped by this
package (debian/cronie.default) and also modify the variable
on ExecStart line as for what is used in the shipped default
file.
Forwarded: not-needed
--- a/contrib/cronie.systemd
+++ b/contrib/cronie.systemd
@@ -3,8 +3,8 @@
After=auditd.service nss-user-lookup.target systemd-user-sessions.service time-sync.target ypbind.service
[Service]
-EnvironmentFile=/etc/sysconfig/crond
-ExecStart=/usr/sbin/crond -n $CRONDARGS
+EnvironmentFile=/etc/default/cronie
+ExecStart=/usr/sbin/crond -n $DAEMON_ARGS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
......@@ -3,3 +3,4 @@
0003-Rename-PAM-service-to-cronie.patch
0004-Debian-specific-paths-and-features.patch
0005-Extend-support-for-kFreeBSD-and-GNU-HURD.patch
0006-cronie-service-debianization.patch
......@@ -58,6 +58,9 @@ override_dh_install:
install -m 644 debian/placeholder debian/cronie/etc/cron.daily/.placeholder
install -m 644 debian/placeholder debian/cronie/etc/cron.weekly/.placeholder
install -m 644 debian/placeholder debian/cronie/etc/cron.monthly/.placeholder
# systemd service file
install -d -m 755 debian/cronie/lib/systemd/system/
install -m 644 contrib/cronie.systemd debian/cronie/lib/systemd/system/cronie.service
# Don't need stop (redundant with sendsigs)
override_dh_installinit:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment