Skip to content

kill leaves orphaned children #1101

Open
@awronski

Description

@awronski

Version: 3.3.1, Ubuntu 18.04

Configuration:

[program:xapi]
command=/usr/bin/npm run start
directory=/opt/nodeapps/xapi
user=nodejs
autostart=true
autorestart=true
startsecs=25
startretries=3
stopasgroup=true
killasgroup=true
stopwaitsecs=10

Process tree after start:

8307 nodejs     20   0 1098M 41928 25772 S  0.0  0.0  0:00.21 │  ├─ npm
8317 nodejs     20   0  4632   928   856 S  0.0  0.0  0:00.00 │  │  ├─ sh -c node -r dotenv/config dist/index.js
8318 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.16 │  │  │  └─ node -r dotenv/config dist/index.js
8323 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.00 │  │  │     ├─ node -r dotenv/config dist/index.js
8322 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.00 │  │  │     ├─ node -r dotenv/config dist/index.js
8321 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.00 │  │  │     ├─ node -r dotenv/config dist/index.js
8320 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.00 │  │  │     ├─ node -r dotenv/config dist/index.js
8319 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.00 │  │  │     └─ node -r dotenv/config dist/index.js
8316 nodejs     20   0 1098M 41928 25772 S  0.0  0.0  0:00.00 │  │  ├─ npm
8315 nodejs     20   0 1098M 41928 25772 S  0.0  0.0  0:00.00 │  │  ├─ npm
8314 nodejs     20   0 1098M 41928 25772 S  0.0  0.0  0:00.00 │  │  ├─ npm
8313 nodejs     20   0 1098M 41928 25772 S  0.0  0.0  0:00.00 │  │  ├─ npm
8312 nodejs     20   0 1098M 41928 25772 S  0.0  0.0  0:00.00 │  │  ├─ npm
8311 nodejs     20   0 1098M 41928 25772 S  0.0  0.0  0:00.00 │  │  ├─ npm
8310 nodejs     20   0 1098M 41928 25772 S  0.0  0.0  0:00.00 │  │  ├─ npm
8309 nodejs     20   0 1098M 41928 25772 S  0.0  0.0  0:00.00 │  │  ├─ npm
8308 nodejs     20   0 1098M 41928 25772 S  0.0  0.0  0:00.00 │  │  └─ npm

# supervisorctl stop xapi
Logs:

2018-05-16 11:12:17,518 INFO waiting for xapi to stop
2018-05-16 11:12:19,518 INFO waiting for xapi to stop
2018-05-16 11:12:21,518 INFO waiting for xapi to stop
2018-05-16 11:12:23,518 INFO waiting for xapi to stop
2018-05-16 11:12:25,518 INFO waiting for xapi to stop
2018-05-16 11:12:27,517 WARN killing 'xapi' (21058) with SIGKILL
2018-05-16 11:12:27,518 INFO waiting for xapi to stop
2018-05-16 11:12:27,520 INFO stopped: xapi (terminated by SIGKILL)

Process tree after stop:

8318 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.16 ├─ node -r dotenv/config dist/index.js
8323 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.00 │  ├─ node -r dotenv/config dist/index.js
8322 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.00 │  ├─ node -r dotenv/config dist/index.js
8321 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.00 │  ├─ node -r dotenv/config dist/index.js
8320 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.00 │  ├─ node -r dotenv/config dist/index.js
8319 nodejs     20   0  866M 38548 24768 S  0.0  0.0  0:00.00 │  └─ node -r dotenv/config dist/index.js

Thanks in advance,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions