summaryrefslogtreecommitdiffstats
path: root/satellit_installer/static_files/timesync/etc
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_installer/static_files/timesync/etc')
-rw-r--r--satellit_installer/static_files/timesync/etc/cron.d/slx-timesync8
-rw-r--r--satellit_installer/static_files/timesync/etc/systemd/system/redneck-timesync.service2
2 files changed, 9 insertions, 1 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
diff --git a/satellit_installer/static_files/timesync/etc/systemd/system/redneck-timesync.service b/satellit_installer/static_files/timesync/etc/systemd/system/redneck-timesync.service
index e019a92..0d67124 100644
--- a/satellit_installer/static_files/timesync/etc/systemd/system/redneck-timesync.service
+++ b/satellit_installer/static_files/timesync/etc/systemd/system/redneck-timesync.service
@@ -6,7 +6,7 @@ After=network.target network-online.target
[Service]
Type=oneshot
RemainAfterExit=no
-ExecStart=/usr/local/sbin/redneck-timesync.sh -s
+ExecStart=/usr/local/sbin/redneck-timesync.sh -s -b
[Install]
WantedBy=network-online.target