Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

To see ALL the daemons currently running, you need to type:

sudo launchctl list

And then you can remove it, for example:

sudo launchctl remove com.sassafras.KeyAccess.daemon
share|improve this answer
    
Huh, I guess if you're not root, it only shows the daemons launched for/as the user? –  jhfrontz Dec 14 '12 at 4:22
    
This doesn't actually work for me. The entries come back on reboot. –  dimadima Oct 11 at 16:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.