loadout/awesome/mediocregopher-sysstats.service

14 lines
314 B
SYSTEMD
Raw Normal View History

2017-10-18 00:12:57 +00:00
[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