Stopping the BigFix Agent from Running on boot, but still able to run it on command

I have been working on a BigFix Deep Freeze interaction script for macOS, imitating the Windows logon script that Faronics provided. I have solved the other problems, but I can’t seem to figure out how to keep the BES Agent from running on boot, while still being able to start it manually later. AKA the Mac equivalent of settings a Windows service to Manual. Does anyone have any insight?

Scott

Daemons on OSX really are supposed to run all the time. It would be very difficult to do what you are saying as to be able to run it as a daemon it needs to have the right plist in the right place… which also starts it up on boot and whenever it terminates.

Unless there is a way to specify in the daemon plist what you are saying, I don’t know if Apple supports that.

Thanks for your response.

Though it is referring to older macOS versions, according to the table 5 from the link below, there is a way to run launch daemons on demand, but I have obviously not been able to get that to work and don’t know if this is still relevant to 10.12.
https://developer.apple.com/library/content/technotes/tn2083/_index.html#//apple_ref/doc/uid/DTS10003794-CH1-SUBSECTION37

If you have any suggestions on how to accomplish the larger goal I would really appreciate the assistance. I am not attached to this avenue of attack. Thanks.

Scott

With the link you provided you should easily be able to modify the plist that the agent uses to launch

/Library/LaunchDaemons/BESAgentDaemon.plist

This contains all the information specified in the apple.com link and you can manipulate it to the config you prefer which I presume is

OnDemand = true (default), RunAtLoad = false (default)

Note that this file would be replaced every time you upgrade your agent with the version from the installer so be aware of that.