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>
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>
which mono
to get the absolute path of the mono executable. Make sure line 14 matches in the plist file.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
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?
I have added some instructions to the wiki: https://github.com/tidusjar/PlexRequests.Net/wiki/Installing-on-Mac-OS-X
Thanks!
Oddly, the Wiki Link works, but it's empty....