mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 18:23:44 +00:00
transmission.service: fix ignored ExecReload setting
This is what currently happens (from the journal log): [/nix/store/HASH-unit/transmission.service:27] Executable path is not absolute, ignoring: kill -HUP $MAINPID Fix it by using absolute path to kill.
This commit is contained in:
parent
748ab74d1f
commit
09a7d18cc3
@ -111,7 +111,7 @@ in
|
||||
${pkgs.stdenv.shell} -c "chmod 770 ${homeDir}"
|
||||
'';
|
||||
serviceConfig.ExecStart = "${pkgs.transmission}/bin/transmission-daemon -f --port ${toString config.services.transmission.rpc_port}";
|
||||
serviceConfig.ExecReload = "kill -HUP $MAINPID";
|
||||
serviceConfig.ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
serviceConfig.User = "transmission";
|
||||
# NOTE: transmission has an internal umask that also must be set (in settings.json)
|
||||
serviceConfig.UMask = "0002";
|
||||
|
Loading…
Reference in New Issue
Block a user