diff options
Diffstat (limited to 'modules/apps')
-rw-r--r-- | modules/apps/icinga2.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/apps/icinga2.nix b/modules/apps/icinga2.nix index e236bf4..407dbda 100644 --- a/modules/apps/icinga2.nix +++ b/modules/apps/icinga2.nix @@ -223,7 +223,7 @@ let chown ${cfg.user}:${cfg.commandGroup} ${dirOf cfg.livestatusSocket} ''; - ExecStart = pkgs.writeBashScript "icinga2-start" '' + start = pkgs.writeBashScriptBin "icinga2" '' set -euo pipefail umask 0077 @@ -348,7 +348,7 @@ in { wantedBy = [ "multi-user.target" ]; inherit environment preStart; serviceConfig = { - inherit ExecStart; + ExecStart = "${start}/bin/icinga2"; KillMode = "mixed"; PermissionsStartOnly = true; Restart = "always"; |