aboutsummaryrefslogtreecommitdiff
path: root/crontab
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-11-23 12:13:06 +0100
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-11-23 12:24:26 +0100
commit49fe9bd77db951bf7daec435f69502807e41c2c4 (patch)
tree62c6033f1495d31507abc9135c0a479cf2eb21ef /crontab
parentb6c97e117c20a91e548966fa50411e7fe3dd8818 (diff)
Implement init/cron split
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'crontab')
-rw-r--r--crontab/Makemodule.am2
-rw-r--r--crontab/swclock.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/crontab/Makemodule.am b/crontab/Makemodule.am
new file mode 100644
index 0000000..2fe3424
--- /dev/null
+++ b/crontab/Makemodule.am
@@ -0,0 +1,2 @@
+crondir = @GCRONDIR@
+cron_DATA = crontab/swclock
diff --git a/crontab/swclock.in b/crontab/swclock.in
new file mode 100644
index 0000000..b5ae7af
--- /dev/null
+++ b/crontab/swclock.in
@@ -0,0 +1,2 @@
+5 */4 * * * @SCRIPTDIR@/setntpdate.sh > /dev/null
+@hourly date --utc +%%m%%d%%H%%M%%Y.%%S > @STATEFILESPATH@/swclock