summarylogtreecommitdiffstats
path: root/tuptime.service
diff options
context:
space:
mode:
Diffstat (limited to 'tuptime.service')
-rw-r--r--tuptime.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/tuptime.service b/tuptime.service
new file mode 100644
index 000000000000..5fef7f4ca1cb
--- /dev/null
+++ b/tuptime.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Tuptime service
+After=local-fs.target
+Requires=local-fs.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+ExecStart=/usr/bin/tuptime -x
+ExecStop=/usr/bin/tuptime -xg
+
+[Install]
+WantedBy=local-fs.target