aboutsummaryrefslogtreecommitdiff
path: root/modules/apps
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-01-13 17:21:31 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-01-13 17:21:31 +0300
commit557e8f8cfa1975e6c17404c513d8e5856a81cf90 (patch)
treebd63d0f00354b982cfdc5bdc9c1fb3a577140cbd /modules/apps
parent57457ce2dcb7ba4d2f5c4742068ef3ffa25c559c (diff)
downloadnixsap-557e8f8cfa1975e6c17404c513d8e5856a81cf90.tar.gz
icinga2: shorten path
Diffstat (limited to 'modules/apps')
-rw-r--r--modules/apps/icinga2.nix4
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";