summaryrefslogtreecommitdiff
path: root/awesome/mediocregopher-sysstats.service
diff options
context:
space:
mode:
Diffstat (limited to 'awesome/mediocregopher-sysstats.service')
-rw-r--r--awesome/mediocregopher-sysstats.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/awesome/mediocregopher-sysstats.service b/awesome/mediocregopher-sysstats.service
new file mode 100644
index 0000000..bac39ba
--- /dev/null
+++ b/awesome/mediocregopher-sysstats.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=mediocregopher's sysstats
+Requires=network.target
+After=network.target
+
+[Service]
+Restart=always
+RestartSec=1s
+User=mediocregopher
+ExecStart=/bin/bash -c 'while [ 1 ]; do out=$(~/.config/awesome/bin/sysstats.sh); echo "$out" > /tmp/sysstats; sleep 1; done'
+
+[Install]
+WantedBy=multi-user.target