Stopping and Starting BESAgent on Mac OSX

The only reason that I am posting this is it seems like all of the posts regarding this topic produce no fruit.

So here is my question, does any one have the steps for stopping and starting the BESAgent on MacOSX (version 10.10 specifically).

The lines below do not work
Stopping:
/bin/launchctl unload /Library/LaunchDaemons/BESAgentDaemon.plist
Starting:
/bin/launchctl load /Library/LaunchDaemons/BESAgentDaemon.plist

I have also tried to kill the process (BESAgent) in Activity Monitor and after I kill the process, it starts right back up again.

Any help is appreciated.

There is a shell script to do this for you now that we don’t have the BESAgentControlPanel.app

sudo /Library/BESAgent/BESAgent.app/Contents/MacOS/BESAgentControlPanel.sh
Usage: AgentControlPanel    [-version] [-status] [-location] [-pid]
                            [-start] [-stop] [-restart]

launchctl changed quite a bit in Yosemite. Now I do

sudo launchctl stop com.bigfix.BESAgent

… and it autorestarts, per the contents of the plist.

@AlanM, the script outputs using echo -n, so there’s no terminating \n. It leaves odd formatting when it returns:

Jungleland:~ atlauren$ sudo /Library/BESAgent/BESAgent.app/Contents/MacOS/BESAgentControlPanel.sh -version
9.2.7.53Jungleland:~ atlauren$

Was this a deliberate choice?

1 Like

What about 10.11? Does it behave the same way?

I’m surprised that launchctl unload isn’t working for you. Are you running it with sudo? That is how I unload and load the daemon on 10.10 and 10.11. It seems to be working for me.

1 Like

Its deliberate due to the old usage of the BESAgentControlPanel.app yes