I have had a couple of attempts at writing a plist file that auto starts BRO on my developer Mac but havent been able to get any to work yet. I am deploying the plist file in the /Library/LaunchAgents and LaunchDaemons directory but it doesn’t seem to want to work.
Does anyone have something like this working?
Goal is to ensure the sensor is always running from system startup and wake.
Is there some reason you want to make it more complicated by using plist’s/launchd/launchctl etc.?
Why not just use a good ol’ cron job on your Mac, should work just fine. FYI the standard bro cron job to clean bro up periodically will autostart bro if it’s not running AFAIK…
*/5 * * * * /usr/local/bin/broctl cleanup
or if 5 minutes on boot is too long after you boot up make it more frequent replacing the 5 with a 2 or test to see if the following works in your crontab as expected (on boot):
@reboot /usr/local/bin/broctl deploy
Hope this helps,