mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
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";
|
description = "mjpg-streamer webcam streamer";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
serviceConfig.User = cfg.user;
|
serviceConfig = {
|
||||||
serviceConfig.Group = cfg.group;
|
User = cfg.user;
|
||||||
|
Group = cfg.group;
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 1;
|
||||||
|
};
|
||||||
|
|
||||||
script = ''
|
script = ''
|
||||||
IPLUGIN="${cfg.inputPlugin}"
|
IPLUGIN="${cfg.inputPlugin}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue