1
0
Fork 0
mirror of https://github.com/pygos/init.git synced 2024-11-26 04:50:43 +01:00

Add cron job for swclocksave

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-09-18 18:32:06 +02:00
parent b9ba11b4db
commit a4dddb7777
3 changed files with 8 additions and 0 deletions

View file

@ -91,6 +91,7 @@ AC_CONFIG_FILES([services/modules])
AC_CONFIG_FILES([services/hostapd]) AC_CONFIG_FILES([services/hostapd])
AC_CONFIG_FILES([services/swclock]) AC_CONFIG_FILES([services/swclock])
AC_CONFIG_FILES([services/swclocksave]) AC_CONFIG_FILES([services/swclocksave])
AC_CONFIG_FILES([services/swclocksave.gcron])
AC_CONFIG_FILES([services/nft]) AC_CONFIG_FILES([services/nft])
AC_CONFIG_FILES([services/sshd]) AC_CONFIG_FILES([services/sshd])
AC_CONFIG_FILES([services/sshd_keygen]) AC_CONFIG_FILES([services/sshd_keygen])

View file

@ -10,6 +10,10 @@ init_DATA += services/network services/hostapd services/swclock
init_DATA += services/swclocksave services/nft services/sigkill init_DATA += services/swclocksave services/nft services/sigkill
init_DATA += services/sshd services/sshd_keygen services/consolefont init_DATA += services/sshd services/sshd_keygen services/consolefont
if GCROND
init_DATA += services/swclocksave.gcron
endif
if USYSLOGD if USYSLOGD
init_DATA += services/usyslogd init_DATA += services/usyslogd
endif endif

View file

@ -0,0 +1,3 @@
interval hourly
tty truncate @STATEFILESPATH@/swclock
exec date --utc +%%m%%d%%H%%M%%Y.%%S