summaryrefslogtreecommitdiffstats
path: root/remote/modules/hardware-stats/data/opt/openslx
diff options
context:
space:
mode:
authorJonathan Bauer2016-01-22 17:35:14 +0100
committerJonathan Bauer2016-01-22 17:35:14 +0100
commitf595907fa79e5eabd4e18766c87a094acd4e4ee4 (patch)
treeb6787af2c28da63e8990ea005bbd93e106fd7f3c /remote/modules/hardware-stats/data/opt/openslx
parent[pvs] remove hardcoded name to pvs session. Instead check for the name in the... (diff)
parent[vmchooser2] Add support for new location related parameters (diff)
downloadtm-scripts-f595907fa79e5eabd4e18766c87a094acd4e4ee4.tar.gz
tm-scripts-f595907fa79e5eabd4e18766c87a094acd4e4ee4.tar.xz
tm-scripts-f595907fa79e5eabd4e18766c87a094acd4e4ee4.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/hardware-stats/data/opt/openslx')
-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"