summaryrefslogtreecommitdiffstats
path: root/remote/modules/idleaction
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-12 15:19:04 +0100
committerSimon Rettberg2016-01-12 15:19:04 +0100
commit0985b23bc36ae4b7f91a7b613bc71de8ace81928 (patch)
tree5478986b95e5157a3413e0fbe0369c59cbcaf3aa /remote/modules/idleaction
parent[cups] added cupsd.conf to static data files (diff)
downloadtm-scripts-0985b23bc36ae4b7f91a7b613bc71de8ace81928.tar.gz
tm-scripts-0985b23bc36ae4b7f91a7b613bc71de8ace81928.tar.xz
tm-scripts-0985b23bc36ae4b7f91a7b613bc71de8ace81928.zip
Touch /etc/cron.d after adding/modifying files, so cron will rescan the dir
Diffstat (limited to 'remote/modules/idleaction')
-rwxr-xr-xremote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script5
1 files changed, 1 insertions, 4 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 9a9bdf1c..100bce82 100755
--- a/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
+++ b/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
@@ -133,9 +133,6 @@ 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
- ) &
+ touch "/etc/cron.d" # Aufs bug where it won't update dir mtime when creating the file within
fi