summaryrefslogtreecommitdiffstats
path: root/remote/modules/cron/data
diff options
context:
space:
mode:
authorJonathan Bauer2016-01-26 15:25:48 +0100
committerJonathan Bauer2016-01-26 15:25:48 +0100
commit62f04a2f77780a694e8098a2df282058a0076840 (patch)
treed0c695fc22a168875c2315a2fa894476034adee0 /remote/modules/cron/data
parent[pvs2] adapted the sessionstart.d/ file for pvs2 to the new changes vmchooser2 (diff)
parent[cron] fail fail. maybe switch to cronie next time... (diff)
downloadtm-scripts-62f04a2f77780a694e8098a2df282058a0076840.tar.gz
tm-scripts-62f04a2f77780a694e8098a2df282058a0076840.tar.xz
tm-scripts-62f04a2f77780a694e8098a2df282058a0076840.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/cron/data')
-rw-r--r--remote/modules/cron/data/etc/systemd/system/cron.service6
l---------remote/modules/cron/data/etc/systemd/system/multi-user.target.wants/cron.service (renamed from remote/modules/cron/data/etc/systemd/system/basic.target.wants/cron.service)0
2 files changed, 3 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 fbf17b27..cd8a41a9 100644
--- a/remote/modules/cron/data/etc/systemd/system/cron.service
+++ b/remote/modules/cron/data/etc/systemd/system/cron.service
@@ -2,6 +2,6 @@
Description=Cron Daemon
[Service]
-Type=forking
-ExecStart=/opt/openslx/sbin/cron
-ExecStop=/opt/openslx/bin/kill -TERM $MAINPID
+ExecStart=/opt/openslx/sbin/cron -n
+ExecStartPost=-/bin/sh -c 'sleep 3; touch -c /etc/cron.d /etc/cron.d/*'
+Restart=on-failure
diff --git a/remote/modules/cron/data/etc/systemd/system/basic.target.wants/cron.service b/remote/modules/cron/data/etc/systemd/system/multi-user.target.wants/cron.service
index 8c1084c3..8c1084c3 120000
--- a/remote/modules/cron/data/etc/systemd/system/basic.target.wants/cron.service
+++ b/remote/modules/cron/data/etc/systemd/system/multi-user.target.wants/cron.service