supervisor stop progress

Set stopasgroup to true to tell supervisor to send the stop signal to the whole process group to prevent orphaned processes when starting/stopping supervisord. This is required when running npm scripts from supervisor.

1
2
3
4
5
6
7
8
9
10
11
12
13
[program:node-server]
directory=/var/www
command=/usr/bin/npm start
stopasgroup=true
autostart=true
autorestart=true

[program:node-watch]
directory=/var/www
command=/usr/bin/npm run watch
stopasgroup=true
autostart=true
autorestart=true
Author: Rick
Link: https://rcrick.github.io/2020/04/22/supervisor-stop-progress/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Donate
  • 微信
  • 支付寶