Influencer / UNplugged

Unraid Plugins
37 stars 16 forks source link

PlexMediaServer Watchdog Plugin #45

Open scarstens opened 10 years ago

scarstens commented 10 years ago

So I was hoping I could look at plugins and figure out how to make my own... I'm in way over my head. I figured it was a longshot, but wanted to see if you could make a plugin to "installs a cron" on reboot, the cron would execute a .sh script that checks if plex service is running, if not, restart it. I've seen a few things from googling, but nothing "stays with my OS on reboot" from the flash drive.

If your not interested, I understand. Just tired of rebooting my server simply because plex service goes down.

Benni-chan commented 10 years ago

you can always restart PlexMediaServer via the unRaid WebGui. no need to restart the whole server. or type "/etc/rc.d/rc.plexmediaserver restart" in a telnet session.

the easiest way to add a cronjob on every reboot would be the /boot/go file. if you have a finished .sh script to restart plex, i could add this whole functionality into my plex updater script.