summaryrefslogtreecommitdiff
path: root/services/swclocksave.in
diff options
context:
space:
mode:
Diffstat (limited to 'services/swclocksave.in')
-rw-r--r--services/swclocksave.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/swclocksave.in b/services/swclocksave.in
new file mode 100644
index 0000000..683ded7
--- /dev/null
+++ b/services/swclocksave.in
@@ -0,0 +1,7 @@
+description write current time to backup file
+type wait
+target %0
+after sigkill
+before sync
+tty truncate @STATEFILESPATH@/swclock
+exec date --utc +%%m%%d%%H%%M%%Y.%%S