From 3a7b046e8e4d2236a9a377225ac27ff08162f133 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 22 Jan 2016 22:15:24 +0100 Subject: [cron] fail fail. maybe switch to cronie next time... --- .../cron/data/etc/systemd/system/basic.target.wants/cron.service | 1 - remote/modules/cron/data/etc/systemd/system/cron.service | 2 +- .../cron/data/etc/systemd/system/multi-user.target.wants/cron.service | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 120000 remote/modules/cron/data/etc/systemd/system/basic.target.wants/cron.service create mode 120000 remote/modules/cron/data/etc/systemd/system/multi-user.target.wants/cron.service (limited to 'remote/modules') diff --git a/remote/modules/cron/data/etc/systemd/system/basic.target.wants/cron.service b/remote/modules/cron/data/etc/systemd/system/basic.target.wants/cron.service deleted file mode 120000 index 8c1084c3..00000000 --- a/remote/modules/cron/data/etc/systemd/system/basic.target.wants/cron.service +++ /dev/null @@ -1 +0,0 @@ -../cron.service \ No newline at end of file diff --git a/remote/modules/cron/data/etc/systemd/system/cron.service b/remote/modules/cron/data/etc/systemd/system/cron.service index b2b5e770..cd8a41a9 100644 --- a/remote/modules/cron/data/etc/systemd/system/cron.service +++ b/remote/modules/cron/data/etc/systemd/system/cron.service @@ -3,5 +3,5 @@ Description=Cron Daemon [Service] ExecStart=/opt/openslx/sbin/cron -n -ExecStartPost=-/opt/openslx/bin/touch -c /etc/cron.d +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/multi-user.target.wants/cron.service b/remote/modules/cron/data/etc/systemd/system/multi-user.target.wants/cron.service new file mode 120000 index 00000000..8c1084c3 --- /dev/null +++ b/remote/modules/cron/data/etc/systemd/system/multi-user.target.wants/cron.service @@ -0,0 +1 @@ +../cron.service \ No newline at end of file -- cgit v1.2.3-55-g7522