From a4dddb777777995f70c85a6cbe956faa93b01ee4 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 18 Sep 2018 18:32:06 +0200 Subject: Add cron job for swclocksave Signed-off-by: David Oberhollenzer --- configure.ac | 1 + services/Makemodule.am | 4 ++++ services/swclocksave.gcron.in | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 services/swclocksave.gcron.in diff --git a/configure.ac b/configure.ac index 84ab673..bde67a1 100644 --- a/configure.ac +++ b/configure.ac @@ -91,6 +91,7 @@ AC_CONFIG_FILES([services/modules]) AC_CONFIG_FILES([services/hostapd]) AC_CONFIG_FILES([services/swclock]) AC_CONFIG_FILES([services/swclocksave]) +AC_CONFIG_FILES([services/swclocksave.gcron]) AC_CONFIG_FILES([services/nft]) AC_CONFIG_FILES([services/sshd]) AC_CONFIG_FILES([services/sshd_keygen]) diff --git a/services/Makemodule.am b/services/Makemodule.am index ac297a6..5ca304c 100644 --- a/services/Makemodule.am +++ b/services/Makemodule.am @@ -10,6 +10,10 @@ init_DATA += services/network services/hostapd services/swclock init_DATA += services/swclocksave services/nft services/sigkill init_DATA += services/sshd services/sshd_keygen services/consolefont +if GCROND +init_DATA += services/swclocksave.gcron +endif + if USYSLOGD init_DATA += services/usyslogd endif diff --git a/services/swclocksave.gcron.in b/services/swclocksave.gcron.in new file mode 100644 index 0000000..24e162b --- /dev/null +++ b/services/swclocksave.gcron.in @@ -0,0 +1,3 @@ +interval hourly +tty truncate @STATEFILESPATH@/swclock +exec date --utc +%%m%%d%%H%%M%%Y.%%S -- cgit v1.2.3