Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 MaxOS 上,我创建了 ~/Library/LaunchAgents/x.plist。然后我用“launchctl load ...”加载它
我做了一些编辑,卸载并重新加载它。当我键入“launchctl list x”时,它不会将我的任何 mod 显示到 plist 文件中。
如何让 launchctl 加载我的新更改?即使在我卸载它之后,它如何记住这个文件的第一个版本?它使用缓存吗?
最快的更新方法是:
# copy the new file to ~/Library/LaunchAgents sudo launchctl unload ~/Library/LaunchAgents/x.plist sudo launchctl load ~/Library/LaunchAgents/x.plist