I have a开发者_如何学Go deamon which is registered with launchctl to run as system-wide-daemon and to load automatically with every system startup or if the daemon crashes.
I have registered this daemon with:
sudo launchctl load -w /Library/LaunchDaemons/plist.file
Everything works fine. My daemon is registered and with
sudo launchctl list
I can find the entry at launchctl
But on some Macs after the user restarts the system, my daemon is not running. And with the command sudo launchctl list
I can't find the entry anymore.
Any ideas, why the entry is missing???
If you need to use -w
, then the Disabled
key is probably set.
User launch daemons should be stored in ~/library/launchagents
or /library/launchagents
or /library/launchdaemons
(to run whenever the system boots but before anybody logs)
精彩评论