Home /  Monit /  Launchd
  1. Install Monit as root:
./configure --bindir=/opt/local/bin/ --mandir=/opt/local/man/ \
  --sysconfdir=/opt/local/etc/ 
make
make install
  1. Edit startup configuration:

/Library/LaunchDaemons/com.tildeslash.monit.plist

<?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>com.tildeslash.monit</string>
      <key>ProcessType</key>       <string>Adaptive</string>
      <key>Disabled</key>          <false/>
      <key>RunAtLoad</key>         <true/>
      <key>LaunchOnlyOnce</key>    <false/>
      <key>ProgramArguments</key>
      <array>
              <string>/opt/local/bin/monit</string>
              <string>-I</string>
              <string>-c</string>
              <string>/opt/local/etc/monitrc</string>
      </array>
</dict>
</plist>
  1. Load:
launchctl load -w /Library/LaunchDaemons/com.tildeslash.monit.plist