plexinc/plex-media-server-distro-scripts — pull request #58 by chrissearle (2013-02-08 09:08:08+00:00)
Title: Quick fix for init.d script to stop error at stop

Wrapped kill call in a check for empty.

Couldn't get -z $PLPLUG to work - had to fall back to X"" != X"$PLPLUG" - perhaps readynas bash is too old?

The plugins are usually killed by the stopping of the server - so perhaps the kill line is unneeded - but I left it in just in case something gets left behind - it will only run if it finds something to kill.