summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2014-07-15 14:40:51 +0200
committerSimon Rettberg2014-07-15 14:40:51 +0200
commitdd2be82a0db047f7e02ab2537ea9e390b982c38c (patch)
tree03cb88b5f96c46596852517572a76947a80219cf
parent[kernel.inc] put that 'fwlist' file in its module build dir (diff)
downloadtm-scripts-dd2be82a0db047f7e02ab2537ea9e390b982c38c.tar.gz
tm-scripts-dd2be82a0db047f7e02ab2537ea9e390b982c38c.tar.xz
tm-scripts-dd2be82a0db047f7e02ab2537ea9e390b982c38c.zip
[idleaction] Restart cron daemon after creating new crontab
Actually the cron should automatically find new or changed files, however, on some machines this reproducibly doesn't happen.
-rwxr-xr-xremote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script4
1 files changed, 4 insertions, 0 deletions
diff --git a/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script b/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
index 964c49c4..f034553c 100755
--- a/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
+++ b/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
@@ -127,5 +127,9 @@ if [ -n "$SLX_SHUTDOWN_SCHEDULE" -o -n "$SLX_REBOOT_SCHEDULE" ] && [ ! -e "$CRON
[ "$MINUTE" -lt 0 -o "$MINUTE" -gt 59 ] && invalid_time && continue
echo "$MINUTE $HOUR * * * root /opt/openslx/scripts/idleaction-scheduled_reboot" >> "$CRONFILE"
done
+ (
+ sleep 20
+ systemctl restart cron
+ ) &
fi