summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-22 21:44:05 +0100
committerSimon Rettberg2016-01-22 21:44:05 +0100
commitf94c9a8c9aadd7996dc06fb8a1d0c0b506a049e8 (patch)
treea29cc8e9cbb41673ebaa7d624f6290828d97cf5d /remote/modules
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-f94c9a8c9aadd7996dc06fb8a1d0c0b506a049e8.tar.gz
tm-scripts-f94c9a8c9aadd7996dc06fb8a1d0c0b506a049e8.tar.xz
tm-scripts-f94c9a8c9aadd7996dc06fb8a1d0c0b506a049e8.zip
[cron] Yet another attempt at preventing cron from ignoring files in cron.d
Diffstat (limited to 'remote/modules')
-rw-r--r--remote/modules/cron/data/etc/systemd/system/cron.service6
1 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..b2b5e770 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=-/opt/openslx/bin/touch -c /etc/cron.d
+Restart=on-failure