Has anyone managed to set up a launchagent for PMS? I'm running 0.9.7.7 and having at least daily crashes (my log was posted in another thread just now).
I have a launchagent set up for all other relevant apps on my new mini, and they work great. The apps start at boot and immediately relaunch after a crash or quit. This is to minimize the number of interventions I must make with a keyboard and mouse.
Here is the content of what I thought would work (the exact same file works perfectly for everything else - with the appropriate <string> entries of course):
But it doesn't. It's like I'm targeting the wrong application file, but there are 3 in that last directory "Contents": Plex Media Server, Plex Media Scanner, and Plex DLNA Server. When PMS quits or crashes, which is happening regularly but unpredictably, it should immediately restart. I want this working even when whatever is causing my current version to crash so much gets resolved. Not only so that my mini just sits there at the TV and is always ready, but also so that when I'm out and about I don't have to log in remotely, physically start PMS because it's crashed, and then use Plex/Web or a client. Call it a failsafe.
Bottom line - I can't get PMS to work with a launchagent. Has anyone succeeded? What is the flaw in my file? Is it that I need to target some other Application file?
Thanks!
I have a launchagent set up for all other relevant apps on my new mini, and they work great. The apps start at boot and immediately relaunch after a crash or quit. This is to minimize the number of interventions I must make with a keyboard and mouse.
Here is the content of what I thought would work (the exact same file works perfectly for everything else - with the appropriate <string> entries of course):
<?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> <true/> <key>Label</key> <string>com.plexmediaserver.PlexMediaServer</string> <key>ProgramArguments</key> <array> <string>/Applications/Plex\ Media\ Server.app/Contents/MacOS/Plex\ Media\ Server</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>
But it doesn't. It's like I'm targeting the wrong application file, but there are 3 in that last directory "Contents": Plex Media Server, Plex Media Scanner, and Plex DLNA Server. When PMS quits or crashes, which is happening regularly but unpredictably, it should immediately restart. I want this working even when whatever is causing my current version to crash so much gets resolved. Not only so that my mini just sits there at the TV and is always ready, but also so that when I'm out and about I don't have to log in remotely, physically start PMS because it's crashed, and then use Plex/Web or a client. Call it a failsafe.
Bottom line - I can't get PMS to work with a launchagent. Has anyone succeeded? What is the flaw in my file? Is it that I need to target some other Application file?
Thanks!