1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

systemd: fix systemctl command

The command's path should be taken from the configuration, not be
assumed to be in `PATH`.
This commit is contained in:
Robert Helgesson 2017-12-11 16:58:50 +01:00
parent 6764c26954
commit 2ff09158f3
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -121,13 +121,13 @@ in
home.activation.reloadSystemD = dagEntryAfter ["linkGeneration"] ''
function isStartable() {
local service="$1"
[[ $(systemctl --user show -p RefuseManualStart "$service") == *=no ]]
[[ $(${cfg.systemctlPath} --user show -p RefuseManualStart "$service") == *=no ]]
}
function isStoppable() {
if [[ -v oldGenPath ]] ; then
local service="$1"
[[ $(systemctl --user show -p RefuseManualStop "$service") == *=no ]]
[[ $(${cfg.systemctlPath} --user show -p RefuseManualStop "$service") == *=no ]]
fi
}