plex module: restart on failure
This commit is contained in:
parent
bd386538a4
commit
db9640b032
|
@ -128,6 +128,7 @@ in
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
PermissionsStartOnly = "true";
|
PermissionsStartOnly = "true";
|
||||||
ExecStart = "/bin/sh -c '${cfg.package}/usr/lib/plexmediaserver/Plex\\ Media\\ Server'";
|
ExecStart = "/bin/sh -c '${cfg.package}/usr/lib/plexmediaserver/Plex\\ Media\\ Server'";
|
||||||
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
environment = {
|
environment = {
|
||||||
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=cfg.dataDir;
|
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=cfg.dataDir;
|
||||||
|
|
Loading…
Reference in a new issue