From 6905e59e25817d6d22550f3857a63d326e66c42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 25 Aug 2017 23:04:56 +0100 Subject: [PATCH] nixos/airsonic: change script to serviceConfig.ExecStart - shell invocation is not necessary here --- nixos/modules/services/misc/airsonic.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nixos/modules/services/misc/airsonic.nix b/nixos/modules/services/misc/airsonic.nix index b0dc3d9ec462..3ec22719720b 100644 --- a/nixos/modules/services/misc/airsonic.nix +++ b/nixos/modules/services/misc/airsonic.nix @@ -81,16 +81,6 @@ in { description = "Airsonic Media Server"; after = [ "local-fs.target" "network.target" ]; wantedBy = [ "multi-user.target" ]; - script = '' - ${pkgs.jre}/bin/java -Xmx${toString cfg.maxMemory}m \ - -Dairsonic.home=${cfg.home} \ - -Dserver.address=${cfg.listenAddress} \ - -Dserver.port=${toString cfg.port} \ - -Dairsonic.contextPath=${cfg.contextPath} \ - -Djava.awt.headless=true \ - -verbose:gc \ - -jar ${pkgs.airsonic}/webapps/airsonic.war - ''; preStart = '' # Install transcoders. @@ -101,6 +91,16 @@ in { done ''; serviceConfig = { + ExecStart = '' + ${pkgs.jre}/bin/java -Xmx${toString cfg.maxMemory}m \ + -Dairsonic.home=${cfg.home} \ + -Dserver.address=${cfg.listenAddress} \ + -Dserver.port=${toString cfg.port} \ + -Dairsonic.contextPath=${cfg.contextPath} \ + -Djava.awt.headless=true \ + -verbose:gc \ + -jar ${pkgs.airsonic}/webapps/airsonic.war + ''; Restart = "always"; User = "airsonic"; UMask = "0022";