Created
January 29, 2021 16:52
-
-
Save gjedeer/cc4d39ff7643350cabec9eefe2bdf7fb to your computer and use it in GitHub Desktop.
Basic self-restarting systemd service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=webcam | |
After=network.target auditd.service | |
[Service] | |
ExecStart=/home/rock/webcam -m -s 1280x720 | |
Type=simple | |
TimeoutStopSec=20 | |
KillMode=process | |
Restart=always | |
StartLimitIntervalSec=0 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment