diff --git a/services-load b/services-load new file mode 100755 index 0000000..fbb013f --- /dev/null +++ b/services-load @@ -0,0 +1,11 @@ +#!/bin/sh + +for svc in $HOME/Library/LaunchAgents/*; do + echo "* Loading $svc" + launchctl load "$svc" +done + +for svc in /Library/LaunchAgents/* /Library/LaunchDaemons/*; do + echo "* Loading $svc" + sudo launchctl load "$svc" +done diff --git a/services-unload b/services-unload new file mode 100755 index 0000000..ebba525 --- /dev/null +++ b/services-unload @@ -0,0 +1,11 @@ +#!/bin/sh + +for svc in $HOME/Library/LaunchAgents/*; do + echo "* Unloading $svc" + launchctl unload "$svc" +done + +for svc in /Library/LaunchAgents/* /Library/LaunchDaemons/*; do + echo "* Unloading $svc" + sudo launchctl unload "$svc" +done