mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 10:47:19 +00:00
launchd: run unload without -w
The service will be removed anyway.
This commit is contained in:
parent
e82885507b
commit
693c89f867
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ let
|
|||
if ! diff '${cfg.build.launchd}/Library/${basedir}/${target}' '/Library/${basedir}/${target}' &> /dev/null; then
|
||||
if test -f '/Library/${basedir}/${target}'; then
|
||||
echo "reloading service $(basename ${target} .plist)" >&2
|
||||
launchctl unload -w '/Library/${basedir}/${target}' || true
|
||||
launchctl unload '/Library/${basedir}/${target}' || true
|
||||
else
|
||||
echo "creating service $(basename ${target} .plist)" >&2
|
||||
fi
|
||||
|
@ -35,7 +35,7 @@ let
|
|||
if ! diff ${cfg.build.launchd}/user/Library/LaunchAgents/${target} ~/Library/LaunchAgents/${target} &> /dev/null; then
|
||||
if test -f ~/Library/LaunchAgents/${target}; then
|
||||
echo "reloading user service $(basename ${target} .plist)" >&2
|
||||
launchctl unload -w ~/Library/LaunchAgents/${target} || true
|
||||
launchctl unload ~/Library/LaunchAgents/${target} || true
|
||||
else
|
||||
echo "creating user service $(basename ${target} .plist)" >&2
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue