Start Agent on Boot - Mac OS X

In order to start the sd-agent on boot we need to make use of launchd and launchctl.

This article is for our v1 agent and will soon be deprecated.

  1. Download the agent to your Mac, extract the archive and copy the contents to /Users/Shared/sd-agent/
    curl -LO
    tar xvfz sd-agent.tar.gz
    sudo mv sd-agent /Users/Shared/
  2. Update the config.cfg file to include your SD URL and device agent key.
    sudo nano /Users/Shared/sd-agent/config.cfg
  3. Download the plist file and save it at /Library/LaunchDaemons/com.serverdensity.agent.plist
    curl -LO
    sudo mv com.serverdensity.agent.plist /Library/LaunchDaemons/
  4. Run the following commands to give the correct permissions and load the plist file with launchctl
    sudo chown root /Library/LaunchDaemons/com.serverdensity.agent.plist
    sudo chgrp wheel /Library/LaunchDaemons/com.serverdensity.agent.plist
    sudo launchctl load /Library/LaunchDaemons/com.serverdensity.agent.plist
  5. Reboot.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.