Skip To Content

INTEGRAL

How To Auto-Start INTEGRAL Server At System Startup on macOS

This page describes how to automatically start and stop INTEGRAL Server on macOS.

  1. Create a simple INTEGRAL Server property list (plist) file. Name it ws.integral.plist and save it in the <integral_extract_dir>/exec/config/ directory.

    Again, <integral_extract_dir> is the directory where you extracted the INTEGRAL ZIP archive. Always replace this string with the actual name of your directory.

    Assuming pico is your text editor, type the following:

    macOS

    cd <integral_extract_dir>/exec/config/
    pico ws.integral.plist

    Then enter the contents of your plist file in the pico editor as shown below. Remember to replace <integral_extract_dir> with the actual name of your directory.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
      <dict>
        <key>Label</key><string>INTEGRAL Server</string>
        <key>Program</key><string><integral_extract_dir>/exec/integral-server-osx</string>
        <key>KeepAlive</key><true/>
        <key>NetworkState</key><true/>
        <key>LaunchOnlyOnce</key><true/>
      </dict>
    </plist>

    Save the file and exit the pico editor.

  2. Set the ownership of the file.

    macOS

    sudo chown root:wheel ws.integral.plist

  3. Create a symbolic link to the plist file in /Library/LaunchDaemons/

    macOS

    sudo ln -s <integral_extract_dir>/exec/config/ws.integral.plist /Library/LaunchDaemons/

Once you have performed the above steps, you can reboot your macOS server. Once the server reboots, INTEGRAL Server should start automatically.

You will also be able to manually start and stop INTEGRAL Server using the following commands:

macOS

sudo launchctl load /Library/LaunchDaemons/ws.integral.plist
sudo launchctl unload /Library/LaunchDaemons/ws.integral.plist

If you ever need to disable the plist file, you can simply delete it from the /Library/LaunchDaemons/ directory.