I'm trying to set up monit to monitor my installation of PMS. When starting PMS with /etc/init.d/plexmediaserver the .pid file iscreated;
If i delete plexmediaserver.pid it is created again when running "start" as above. But when running "stop" the .pid file is not removed, so monit dosen't get the correct status of the service.
Code:
root@RasPMS:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server# ls
Cache Crash Reports Media plexmediaserver.pid Plug-in Support Scanners
Codecs Logs Metadata Plug-ins Preferences.xml Thumbnails