From 557e8f8cfa1975e6c17404c513d8e5856a81cf90 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 13 Jan 2017 17:21:31 +0300 Subject: icinga2: shorten path --- modules/apps/icinga2.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/apps') 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"; -- cgit v1.2.3