mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39: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:
parent
6764c26954
commit
2ff09158f3
1 changed files with 2 additions and 2 deletions
|
@ -121,13 +121,13 @@ in
|
||||||
home.activation.reloadSystemD = dagEntryAfter ["linkGeneration"] ''
|
home.activation.reloadSystemD = dagEntryAfter ["linkGeneration"] ''
|
||||||
function isStartable() {
|
function isStartable() {
|
||||||
local service="$1"
|
local service="$1"
|
||||||
[[ $(systemctl --user show -p RefuseManualStart "$service") == *=no ]]
|
[[ $(${cfg.systemctlPath} --user show -p RefuseManualStart "$service") == *=no ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
function isStoppable() {
|
function isStoppable() {
|
||||||
if [[ -v oldGenPath ]] ; then
|
if [[ -v oldGenPath ]] ; then
|
||||||
local service="$1"
|
local service="$1"
|
||||||
[[ $(systemctl --user show -p RefuseManualStop "$service") == *=no ]]
|
[[ $(${cfg.systemctlPath} --user show -p RefuseManualStop "$service") == *=no ]]
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue