diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2019-07-01 23:43:50 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2019-07-01 23:44:21 +0200 |
| commit | a5e3dbb8a4730ba418e03f7869198ad70c4b8426 (patch) | |
| tree | 3f512aed6caed54255aee6209a0d8fe41141823a /modules/system | |
| parent | 462a17b1f1f428ed26a7d7c6f3b07ad909eda015 (diff) | |
launchd: don't disable services when unloading
Diffstat (limited to 'modules/system')
| -rw-r--r-- | modules/system/launchd.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/system/launchd.nix b/modules/system/launchd.nix index f2cee96..3df6610 100644 --- a/modules/system/launchd.nix +++ b/modules/system/launchd.nix @@ -108,7 +108,7 @@ in for f in $(ls /run/current-system/Library/LaunchAgents 2> /dev/null); do if test ! -e "${cfg.build.launchd}/Library/LaunchAgents/$f"; then echo "removing service $(basename $f .plist)" >&2 - launchctl unload -w "/Library/LaunchAgents/$f" || true + launchctl unload "/Library/LaunchAgents/$f" || true if test -e "/Library/LaunchAgents/$f"; then rm -f "/Library/LaunchAgents/$f"; fi fi done @@ -116,7 +116,7 @@ in for f in $(ls /run/current-system/Library/LaunchDaemons 2> /dev/null); do if test ! -e "${cfg.build.launchd}/Library/LaunchDaemons/$f"; then echo "removing service $(basename $f .plist)" >&2 - launchctl unload -w "/Library/LaunchDaemons/$f" || true + launchctl unload "/Library/LaunchDaemons/$f" || true if test -e "/Library/LaunchDaemons/$f"; then rm -f "/Library/LaunchDaemons/$f"; fi fi done @@ -136,7 +136,7 @@ in for f in $(ls /run/current-system/user/Library/LaunchAgents 2> /dev/null); do if test ! -e "${cfg.build.launchd}/user/Library/LaunchAgents/$f"; then echo "removing user service $(basename $f .plist)" >&2 - launchctl unload -w ~/Library/LaunchAgents/$f || true + launchctl unload ~/Library/LaunchAgents/$f || true if test -e ~/Library/LaunchAgents/$f; then rm -f ~/Library/LaunchAgents/$f; fi fi done |
