summaryrefslogtreecommitdiffstats
path: root/remote/modules/hardware-stats/data/opt/openslx/scripts
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/hardware-stats/data/opt/openslx/scripts
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/hardware-stats/data/opt/openslx/scripts')
-rwxr-xr-xremote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats b/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
index 6c0b667b..ce910a2b 100755
--- a/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
+++ b/remote/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
@@ -198,6 +198,8 @@ for DELAY in 1 1 0; do
${START}-59/5 * * * * root /opt/openslx/scripts/cron-system_usage_update
EOF
+ touch "/etc/cron.d" # Sometimes, aufs doesn't update the mtime of dirs when creating files,
+ # so cron would not rescan the cron directory
exit 0
fi
sleep "$DELAY"