开发者

missing entry in launchctl after restart

开发者 https://www.devze.com 2023-01-03 17:27 出处:网络
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 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)

0

精彩评论

暂无评论...
验证码 换一张
取 消