mirror of
https://github.com/pygos/init.git
synced 2024-12-22 15:20:49 +01:00
Add cron job for swclocksave
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
b9ba11b4db
commit
a4dddb7777
3 changed files with 8 additions and 0 deletions
|
@ -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])
|
||||
|
|
|
@ -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
|
||||
|
|
3
services/swclocksave.gcron.in
Normal file
3
services/swclocksave.gcron.in
Normal file
|
@ -0,0 +1,3 @@
|
|||
interval hourly
|
||||
tty truncate @STATEFILESPATH@/swclock
|
||||
exec date --utc +%%m%%d%%H%%M%%Y.%%S
|
Loading…
Reference in a new issue