Closed y2kbadbug closed 2 years ago
Use data mode:
echo Sonarr "|" `pgrep -n -f -x "/usr/bin/mono --debug /usr/lib/sonarr/Sonarr.exe -nobrowser -data=/var/lib/sonarr"` > phpsysinfo_folder\data\psstatus.txt
ACCESS="data"
PROCESSES="Sonarr"
This would be required to run every time the application is restarted in order to update the process, right?
I am going to try what you described in #79
Use crond to execute this command periodically.
I edited the plugin php file to have it run every time the page is ran, it works good. I will close this.
So right now you just specify the process name, which could look pretty ugly. If there was a way to do a dictionary style config to say what the program is called. Such as "/usr/bin/mono --debug /usr/lib/sonarr/Sonarr.exe -nobrowser -data=/var/lib/sonarr" would just be labeled as Sonarr. Or even if we can use wildcards to find the process but still choose a more friendly name to put.