diff options
Diffstat (limited to 'multimedia/plexmediaserver/rc.plexmediaserver')
-rw-r--r-- | multimedia/plexmediaserver/rc.plexmediaserver | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/multimedia/plexmediaserver/rc.plexmediaserver b/multimedia/plexmediaserver/rc.plexmediaserver index c7432fd495..5a9b797318 100644 --- a/multimedia/plexmediaserver/rc.plexmediaserver +++ b/multimedia/plexmediaserver/rc.plexmediaserver @@ -39,6 +39,11 @@ plexmediaserver_stop() { # plugins may still running when stopping plexmediaserver on its startup # process PGREP_PLUGINS=$(pgrep -f "Plex Plug-in") + PGREP_DLNA=$(pgrep -f "Plex DLNA Server") + PGREP_TUNER=$(pgrep -f "Plex Tuner Service") + PGREP_EGP=$(pgrep -f "Plex EAE Service") + PGREP_TRANSCODER=$(pgrep -f "Plex Transcoder") + if [ -z "$PIDOF" ] && [ -z "$PGREP_PLUGINS" ]; then echo "plexmediaserver is not running..." @@ -56,6 +61,31 @@ plexmediaserver_stop() { done fi + if [ -n "$PGREP_DLNA" ]; then + for i in "$PGREP_DLNA"; do + kill -9 $i + done + fi + + if [ -n "$PGREP_TUNER" ]; then + for i in "$PGREP_TUNER"; do + kill -9 $i + done + fi + + if [ -n "$PGREP_EGP" ]; then + for i in "$PGREP_EGP"; do + kill -9 $i + done + fi + + if [ -n "$PGREP_TRANSCODER" ]; then + for i in "$PGREP_TRANSCODER"; do + kill -9 $i + done + fi + + echo "done" fi } |