I was trying to permanently disable a 3rd party daemon, so I deleted its plist file from /Library/LaunchDaemons-- and then I realized that I hadn't done a launchctl unload
on it first; trying after the fact yields "No such file or directory/nothing found to unload". And, of course the daemon is restartable, so when I kill it, it gets recreated.
I tried doing launchctl list
in hopes of getting a label to use for launchctl remove
but the daemon is no longer listed.
Short of rebooting, is there any way to get launchd to forget about the daemon and/or re-scan the configuration files?
launchctl kill com.example.product
seems to work. – Abhi Beckert May 16 '18 at 0:24