From db9640b03247585a84d4778dbed26d8338dcb7a1 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Fri, 8 Apr 2016 10:55:00 -0700 Subject: [PATCH] plex module: restart on failure --- nixos/modules/services/misc/plex.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/misc/plex.nix b/nixos/modules/services/misc/plex.nix index 875771dfa37f..92b352db416c 100644 --- a/nixos/modules/services/misc/plex.nix +++ b/nixos/modules/services/misc/plex.nix @@ -128,6 +128,7 @@ in Group = cfg.group; PermissionsStartOnly = "true"; ExecStart = "/bin/sh -c '${cfg.package}/usr/lib/plexmediaserver/Plex\\ Media\\ Server'"; + Restart = "on-failure"; }; environment = { PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=cfg.dataDir;