summaryrefslogtreecommitdiffstats
path: root/satellit_installer/static_files/timesync/etc/cron.d/slx-timesync
diff options
context:
space:
mode:
authorSimon Rettberg2023-09-29 16:37:15 +0200
committerSimon Rettberg2023-09-29 16:37:15 +0200
commit134bf3e3bdad7927de9c3ef7b57f9faf358cdffa (patch)
tree4e57eb21018627e3aec030af3bb81432205d3a16 /satellit_installer/static_files/timesync/etc/cron.d/slx-timesync
parent[SSPS] timesync: Use more privacy-friendly URLs (diff)
downloadsetup-scripts-134bf3e3bdad7927de9c3ef7b57f9faf358cdffa.tar.gz
setup-scripts-134bf3e3bdad7927de9c3ef7b57f9faf358cdffa.tar.xz
setup-scripts-134bf3e3bdad7927de9c3ef7b57f9faf358cdffa.zip
[SSPS] timesync: Add cronjob to sync once a day
Diffstat (limited to 'satellit_installer/static_files/timesync/etc/cron.d/slx-timesync')
-rw-r--r--satellit_installer/static_files/timesync/etc/cron.d/slx-timesync8
1 files changed, 8 insertions, 0 deletions
diff --git a/satellit_installer/static_files/timesync/etc/cron.d/slx-timesync b/satellit_installer/static_files/timesync/etc/cron.d/slx-timesync
new file mode 100644
index 0000000..e0a7c22
--- /dev/null
+++ b/satellit_installer/static_files/timesync/etc/cron.d/slx-timesync
@@ -0,0 +1,8 @@
+# Run our http-based timesync once a day
+# This script will check whether ntpd or systemd-timesyncd is
+# running, in which case it does nothing.
+
+SHELL=/bin/sh
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+33 2 * * * root /usr/local/sbin/redneck-timesync.sh -s