1 |
diff -Nur e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/40service e-smith-ntp-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/40service |
2 |
--- e-smith-ntp-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/40service 2021-01-03 00:03:22.589000000 -0500 |
3 |
+++ e-smith-ntp-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/ntpd.service.d/50koozali.conf/40service 2021-01-03 00:15:55.206000000 -0500 |
4 |
@@ -17,4 +17,4 @@ |
5 |
} |
6 |
ExecStartPre=-/sbin/e-smith/expand-template /etc/ntp.conf |
7 |
ExecStartPre=-/sbin/e-smith/systemd/initializedate |
8 |
- |
9 |
+Restart=always |
10 |
diff -Nur e-smith-ntp-2.6.0.old/root/sbin/e-smith/systemd/initializedate e-smith-ntp-2.6.0/root/sbin/e-smith/systemd/initializedate |
11 |
--- e-smith-ntp-2.6.0.old/root/sbin/e-smith/systemd/initializedate 2021-01-03 00:03:22.590000000 -0500 |
12 |
+++ e-smith-ntp-2.6.0/root/sbin/e-smith/systemd/initializedate 2021-01-03 00:15:05.932000000 -0500 |
13 |
@@ -16,4 +16,8 @@ |
14 |
# Run ntpdate so we're not way off on startup. |
15 |
ntpstep=/etc/ntp/step-tickers |
16 |
tickers=`/bin/sed -e 's/\#.*$//g' $ntpstep` |
17 |
+#get current date (will need to update this command soon to be retired : ntpd -q -x -g -g -g -g |
18 |
/usr/sbin/ntpdate -b -p 8 $tickers |
19 |
+# set hardware clock to the current time |
20 |
+/usr/sbin/hwclock --systohc |
21 |
+exit 0 |