add example ffpc service

This commit is contained in:
jb-alvarado 2022-05-18 21:11:11 +02:00
parent a42e267626
commit 11db9f5626
2 changed files with 16 additions and 2 deletions

14
assets/ffpc.service Normal file
View File

@ -0,0 +1,14 @@
[Unit]
Description=ffplayout process control
After=network.target remote-fs.target
[Service]
ExecStart= /usr/bin/ffpc
ExecReload=/bin/kill -1 $MAINPID
Restart=always
RestartSec=1
User=www-data
Group=www-data
[Install]
WantedBy=multi-user.target

View File

@ -1,9 +1,9 @@
command = "/usr/bin/ffplayout -o stream"
start-delay = "0s"
start-delay = "1s"
user = "${USER}"
[restart]
strategy = "always"
strategy = "on-failure"
backoff = "1s"
attempts = 5