joe-at-startupmedia / pmon3

Golang Production Process Manager
10 stars 0 forks source link

pmon2 application remain spawned even after stopping the pmon2 service #7

Closed joe-at-startupmedia closed 11 months ago

joe-at-startupmedia commented 11 months ago
[terraform@puppet pmon2]$ pmon2 ls
+----+------------------+--------+---------+-----------+-----+---------+---------------------+
| ID |       NAME       |  PID   | STATUS  |   USER    | CPU |   MEM   |        DATE         |
+----+------------------+--------+---------+-----------+-----+---------+---------------------+
| 1  |   test_server    | 405882 | running | terraform | 0%  | 19.7 MB | 2023-12-31 09:03:25 |
| 2  |  server-replica  | 405904 | running | terraform | 0%  | 18.1 MB | 2023-12-31 09:03:51 |
| 3  | server-replica-2 | 405927 | running | terraform | 0%  | 15.8 MB | 2023-12-31 09:04:35 |
+----+------------------+--------+---------+-----------+-----+---------+---------------------+
[terraform@puppet pmon2]$ sudo systemctl status pmon2
○ pmon2.service - Pmon2 Daemon Service
     Loaded: loaded (/usr/lib/systemd/system/pmon2.service; enabled; preset: disabled)
     Active: inactive (dead) since Sun 2023-12-31 09:05:16 UTC; 15s ago
   Duration: 2min 3.326s
    Process: 405865 ExecStart=/usr/local/pmon2/bin/pmond (code=killed, signal=TERM)
    Process: 405950 ExecStop=/usr/bin/kill $MAINPID (code=exited, status=0/SUCCESS)
   Main PID: 405865 (code=killed, signal=TERM)
        CPU: 388ms
joe-at-startupmedia commented 11 months ago

possibly related to #8

joe-at-startupmedia commented 11 months ago

https://github.com/joe-at-startupmedia/pmon3?tab=readme-ov-file#5-should-i-use-sudo-commands