I have found that the launchctl sub commands like load/ unload listed in legacy sub commands on mac os x 10.10.
So my question is how to launchctl to load/unload demons present at /Library/LaunchDaemons/
I visited the link.
using this I do sudo launchctl bootstrap system /Library/LaunchDaemons/com.mydemo.com
and found that service load successfully only if plist's permission is proper.
but not able to unload it with the help of non legacy commands.
I found when I try using command sudo launchctl unbootstrap system /Library/LaunchDaemons/com.mydemo.com
it shows message saying "Command is not yet implemented".
NOTE: load/ unload still works.
The counterpart of bootstrap
is bootout
:
sudo launchctl bootout system /Library/LaunchDaemons/com.mydemo.service.plist
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With