Ombi: Autostart on OSX

Created on 24 Aug 2016  路  7Comments  路  Source: tidusjar/Ombi

Could somebody explain me how I should make plexrequest.net autostart on a mac?
I've tried creating a plist and loading that but that seems to fail.

<?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>KeepAlive</key>
    <dict>
      <key>SuccessfulExit</key>
      <false />
    </dict>
    <key>Label</key>
    <string>plexrequests.job</string>
    <key>ProgramArguments</key>
    <array>
      <string>mono</string>

      <string>path to plexrequests.exe</string>
    </array>
    <key>RunAtLoad</key>
    <true />
    <key>AbandonProcessGroup</key>
    <true />
  </dict>
</plist>
help wanted

All 7 comments

Autostart on the Mac

  1. Create a file called net.tidusjar.plexrequests.plist in your ~/Library/LaunchAgents directory with the following content:
<?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>KeepAlive</key>
    <dict>
        <key>SuccessfulExit</key>
        <false/>
    </dict>
    <key>Label</key>
    <string>PlexRequests</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/bin/mono</string>
        <string>PlexRequests.exe</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>WorkingDirectory</key>
    <string>/Users/kamikasky/Documents/PlexRequests/Release</string>
</dict>
</plist>
  1. Open up Terminal and run which mono to get the absolute path of the mono executable. Make sure line 14 matches in the plist file.
  2. Change line 20 to the absolute path of your PlexRequests folder.
  3. In Terminal:

    To enable the daemon: launchctl load ~/Library/LaunchAgents/net.tidusjar.plexrequests.plist

    To disable the daemon: launchctl unload ~/Library/LaunchAgents/net.tidusjar.plexrequests.plist

  4. Enjoy! This will automatically start PlexRequests when you login.

Alternatively, save the plist in /Library/LaunchAgents using administrative access and run the launchd commands with sudo as the prefix. Make sure your working directory is freely accessable by the root user. This should make the daemon start on machine boot without waiting the user to login.

Thanks for that @kamikasky !

Thank you! @kamikasky

Can someone add this into the wiki?

Thanks!

Oddly, the Wiki Link works, but it's empty....

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PotatoQuality picture PotatoQuality  路  3Comments

anderson115 picture anderson115  路  5Comments

CBers picture CBers  路  5Comments

weirdcrap picture weirdcrap  路  5Comments

leram84 picture leram84  路  5Comments