add example ffpc service
This commit is contained in:
parent
a42e267626
commit
11db9f5626
14
assets/ffpc.service
Normal file
14
assets/ffpc.service
Normal 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
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user