mirror of
https://github.com/zoriya/home-manager.git
synced 2026-06-07 12:15:34 +00: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:
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user