[Unit] Description=arbtt # StartLimitIntervalSec in recent systemd versions StartLimitInterval=0 [Service] Type=simple ExecStart=/usr/bin/arbtt-capture --sample-rate=15 Environment="DISPLAY=:0" Restart=always # time to sleep before restarting a service RestartSec=10 [Install] WantedBy=default.target