Add fake "name" argument to Runner command line to help identify services
This might sound weird, but I think it's a simple solution to being able to see if a service is running from the Linux command line.
Currently, running a command like ps ax | grep php
will give this:
17902 ? S 0:05 php-fpm: pool www
18328 ? S 0:03 php-fpm: pool www
18582 ? S 0:00 php-fpm: pool www
18924 pts/1 S+ 0:00 grep --color=auto php
22761 ? S 2:59 php /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Server.php
22797 ? S 0:00 sh -c php "/opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php"
22798 ? S 0:18 php /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php
22801 ? S 0:00 sh -c php "/opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php"
22802 ? S 0:16 php /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php
22803 ? S 0:00 sh -c php "/opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php"
22804 ? S 0:19 php /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php
22805 ? S 0:00 sh -c php "/opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php"
22806 ? S 0:00 sh -c php "/opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php"
22807 ? S 0:03 php /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php
22808 ? S 0:03 php /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php
24988 ? Ss 2:04 php-fpm: master process (/etc/php/7.2/fpm/php-fpm.conf)
As you can see, there are multiple runners. On this system there are 5 services so telling them apart is currently impossible. I'd like to see something like:
22798 ? S 0:18 php /opt/abe-web/ABE/vendor/hazaarlabs/hazaar-warlock/src/Runner.php --name Notify
Edited by Jamie Carl