phpsysinfo / phpsysinfo

phpSysInfo: a customizable PHP script that displays information about your system nicely
http://phpsysinfo.github.io/phpsysinfo
GNU General Public License v2.0
1.38k stars 234 forks source link

Feature Request: Make way to name PSStatus programs and provide their binary to look for. #305

Closed y2kbadbug closed 2 years ago

y2kbadbug commented 2 years ago

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.

namiltd commented 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"

y2kbadbug commented 2 years ago

This would be required to run every time the application is restarted in order to update the process, right?

y2kbadbug commented 2 years ago

I am going to try what you described in #79

namiltd commented 2 years ago

Use crond to execute this command periodically.

y2kbadbug commented 2 years ago

I edited the plugin php file to have it run every time the page is ran, it works good. I will close this.