summaryrefslogtreecommitdiffstats
path: root/core/modules/bwlp-stage4-tweaks/data/etc/cron.d/slx-timesync
diff options
context:
space:
mode:
authorSimon Rettberg2023-09-29 15:57:03 +0200
committerSimon Rettberg2023-09-29 15:57:29 +0200
commit9dfbd328d5440054be6e5d6e1138c86c076a51e8 (patch)
tree848f2756417947381ef70861477d02164eccc78d /core/modules/bwlp-stage4-tweaks/data/etc/cron.d/slx-timesync
parentThis should never have worked (diff)
downloadmltk-9dfbd328d5440054be6e5d6e1138c86c076a51e8.tar.gz
mltk-9dfbd328d5440054be6e5d6e1138c86c076a51e8.tar.xz
mltk-9dfbd328d5440054be6e5d6e1138c86c076a51e8.zip
[bwlp-stage4-tweaks] Add daily ntp sync script
Closes #3947
Diffstat (limited to 'core/modules/bwlp-stage4-tweaks/data/etc/cron.d/slx-timesync')
-rw-r--r--core/modules/bwlp-stage4-tweaks/data/etc/cron.d/slx-timesync7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/modules/bwlp-stage4-tweaks/data/etc/cron.d/slx-timesync b/core/modules/bwlp-stage4-tweaks/data/etc/cron.d/slx-timesync
new file mode 100644
index 00000000..6acc48d5
--- /dev/null
+++ b/core/modules/bwlp-stage4-tweaks/data/etc/cron.d/slx-timesync
@@ -0,0 +1,7 @@
+# Sync time once a day; script includes a random startup delay
+# Avoid clients running for weeks to run out of sync with the server too much
+
+SHELL=/bin/sh
+PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/openslx/sbin:/opt/openslx/bin
+
+19 1 * * * root /opt/openslx/scripts/cron-ntp