diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-09-18 18:32:06 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-09-19 12:22:14 +0200 |
commit | a4dddb777777995f70c85a6cbe956faa93b01ee4 (patch) | |
tree | 09a4dd404ab20f1401c7f5cfb86e6905d814170d /services | |
parent | b9ba11b4db9c862ca1d2c90cafcf6495183619a9 (diff) |
Add cron job for swclocksave
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'services')
-rw-r--r-- | services/Makemodule.am | 4 | ||||
-rw-r--r-- | services/swclocksave.gcron.in | 3 |
2 files changed, 7 insertions, 0 deletions
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 |