I was looking at the install guide, specifically the Post Install steps about setting up a LaunchDeamon on OS X and I found a few errors. Here is what is currently posted:
This will install a PlexConnect plist in /Library/LaunchDaemon (for the forthcoming boots) and start the PlexConnect daemon
Additional Commands
sudo ./uninstall.bash will shut down the daemon and uninstall it - (removes the plist).
launchctl unload /Library/LaunchDaemon/com/plex/plexconnect.com will unload or stop the service for this boot.
launchctl load /Library/LaunchDaemon/com/plex/plexconnect.com will restart the process.
launchctl list | grep com.plex.plexconnect.com indicates whether the process is running (first number - PID) and (if neccessary) an error number.
I believe it should be:
This will install a PlexConnect plist in /Library/LaunchDaemons (for the forthcoming boots) and start the PlexConnect daemon
Additional Commands
sudo ./uninstall.bash will shut down the daemon and uninstall it - (removes the plist).
launchctl unload /Library/LaunchDaemons/com.plex.plexconnect.bash.plist will unload or stop the service for this boot.
launchctl load /Library/LaunchDaemons/com.plex.plexconnect.bash.plist will restart the process.
launchctl list | grep com.plex.plexconnect.bash indicates whether the process is running (first number - PID) and (if neccessary) an error number.
I'm actually wondering if those launchtl commands need a "sudo" at the front of them. If I don't do that, it seems I see these errors in Plexconnect.log
10:56:57 DNSServer: Failed to create socket on UDP port 53: [Errno 13] Permission denied
10:56:57 PlexConnect: DNSServer not alive. Shutting down.
10:56:57 PlexConnect: Shutting down.
10:56:57 PlexConnect: shutdown
If I unload the user loaded command and prefix it with sudo, then check the log, it's started things up correctly. If I use the list command it does not list anything when I've used sudo to launch the commands, makes sense, as it was loaded with sudo and current user does not list those services. hmm
I hope I'm not missing something major and / or annoying people with this.
Ok, just checked and it seems the name of the file is still "com.plex.plexconnect.com" in the guide, when I believe it needs to be "com.plex.plexconnect.bash.plist" as that's the file that is installed in /Library/LaunchDaemons/
Unless there is a code change I don't have which changes this? I did pull this morning before creating this post though.
If I'm incorrect, please virtually slap me, and then shame me further by detailing why I am incorrect :D