6

On MaxOS I created ~/Library/LaunchAgents/x.plist. Then I loaded it with "launchctl load ..."

I made some edits, unloaded and reloaded it. When I type "launchctl list x" it does not display any of my mods to the plist file.

How can I get launchctl to load my new changes? How is it remembering the first version of this file even after I unloaded it? Does it use a cache?

Lawrence I. Siden
  • 9,191
  • 10
  • 43
  • 56

1 Answers1

6

The quickest way to update is:

# copy the new file to ~/Library/LaunchAgents

sudo launchctl unload ~/Library/LaunchAgents/x.plist
sudo launchctl load   ~/Library/LaunchAgents/x.plist
Josep Alsina
  • 2,762
  • 1
  • 16
  • 12