mjpg-streamer service: restart on failure
This commit is contained in:
parent
47bb8abd08
commit
608ee1c7b3
1 changed files with 6 additions and 2 deletions
|
@ -59,8 +59,12 @@ in {
|
|||
description = "mjpg-streamer webcam streamer";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig.User = cfg.user;
|
||||
serviceConfig.Group = cfg.group;
|
||||
serviceConfig = {
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
Restart = "on-failure";
|
||||
RestartSec = 1;
|
||||
};
|
||||
|
||||
script = ''
|
||||
IPLUGIN="${cfg.inputPlugin}"
|
||||
|
|
Loading…
Reference in a new issue