OSX: Why is my launchd agent running my script twice?

452 views Asked by At

I have one plist associated with this launchd agent. There is one agent listed in launchctl list, and it calls my bash script, called rc.wakeup, whenever the mac is woken up from sleep. There is only one copy of this bash script. The code in the bash script is not repeated. Despite this, the bash script is being executed twice in its entirety. Why?

EDIT: I have created an install bash script and an uninstall bash script. I have been executing these in series an an attempt to get both scripts working so this program can be used by anyone. I believe improperly installing/uninstalling these files has caused the problem, although I have no idea why it would.

0

There are 0 answers