summaryrefslogtreecommitdiffstats
path: root/remote/modules/cron/data
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-27 11:57:23 +0100
committerSimon Rettberg2016-01-27 11:57:23 +0100
commitf88956297a9f4faa7a668693bb359a61b0737197 (patch)
tree7d9d80376ee85f07af3975a43190835e30947c27 /remote/modules/cron/data
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-f88956297a9f4faa7a668693bb359a61b0737197.tar.gz
tm-scripts-f88956297a9f4faa7a668693bb359a61b0737197.tar.xz
tm-scripts-f88956297a9f4faa7a668693bb359a61b0737197.zip
[cron] Switch to cronie
Diffstat (limited to 'remote/modules/cron/data')
-rw-r--r--remote/modules/cron/data/etc/systemd/system/cron.service9
1 files changed, 6 insertions, 3 deletions
diff --git a/remote/modules/cron/data/etc/systemd/system/cron.service b/remote/modules/cron/data/etc/systemd/system/cron.service
index cd8a41a9..d2c09ebb 100644
--- a/remote/modules/cron/data/etc/systemd/system/cron.service
+++ b/remote/modules/cron/data/etc/systemd/system/cron.service
@@ -1,7 +1,10 @@
[Unit]
-Description=Cron Daemon
+Description=Cron Daemon (cronie)
+After=auditd.service nss-user-lookup.target systemd-user-sessions.service time-sync.target ypbind.service
[Service]
-ExecStart=/opt/openslx/sbin/cron -n
-ExecStartPost=-/bin/sh -c 'sleep 3; touch -c /etc/cron.d /etc/cron.d/*'
+ExecStart=/opt/openslx/sbin/crond -n
Restart=on-failure
+ExecReload=/opt/openslx/bin/kill -HUP $MAINPID
+KillMode=process
+