summaryrefslogtreecommitdiff
path: root/awesome/mediocregopher-sysstats.service
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2017-10-17 18:12:57 -0600
committermediocregopher <mediocregopher@gmail.com>2021-10-03 17:22:56 -0600
commit07ab3a77b44944a1ac234fbd717391f36370416e (patch)
treeedd959740bf9256bf38e9c2e3cacda8c555f8c56 /awesome/mediocregopher-sysstats.service
initial public commit
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