Add fake "name" argument to Runner command line to help identify services #62

Closed
opened 2020-10-05 22:56:49 +00:00 by jamie · 4 comments
jamie commented 2020-10-05 22:56:49 +00:00 (Migrated from git.hazaar.io)

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
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 ```
jamie commented 2020-10-06 01:27:50 +00:00 (Migrated from git.hazaar.io)

changed title from Add fake "name" argument to Runner command line to Add fake "name" argument to Runner command line{+ to help identify services+}

changed title from **Add fake "name" argument to Runner command line** to **Add fake "name" argument to Runner command line{+ to help identify services+}**
jamie commented 2021-04-06 01:31:50 +00:00 (Migrated from git.hazaar.io)

created merge request !33 to address this issue

created merge request !33 to address this issue
jamie commented 2021-04-06 01:31:50 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !33

mentioned in merge request !33
jamie commented 2021-04-06 03:34:32 +00:00 (Migrated from git.hazaar.io)

mentioned in commit d062aff52c

mentioned in commit d062aff52ca68902ec92247431d364fe75512166
jamie (Migrated from git.hazaar.io) closed this issue 2021-04-06 03:34:32 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/hazaar-warlock#62
No description provided.