Supervisor: service supervisord restart - it doesn't kill old processes, just add new

Created on 30 Mar 2015  路  11Comments  路  Source: Supervisor/supervisor

Then I have each program duplication.

Most helpful comment

That's the working solution after all:

  1. Manually kill all your old processes

  2. Also ask supervisor stop all processes just to be sure we are on a fresh start

    sudo supervisorctl stop all

  3. Put two new parameters into config belongs to your process with name

    #/etc/supervisorctl/conf.d/your_process.conf
    
    [program:<your_process>]
    ...
    stopasgroup=true
    stopsignal=QUIT
    
  4. Make sure supervisor has updated your config:

    sudo supervisorctl reread

    sudo supervisorctl update

  5. Start your process

    sudo supervisorctl start <your_process>

  6. Check you have no zombies at the process list after supervisorctl restart <your_process> by ps aux | grep "whatever indicates your process"

All 11 comments

I also have this issue, how to fix this?

@andriytkachiv Any luck with it?

That's the working solution after all:

  1. Manually kill all your old processes

  2. Also ask supervisor stop all processes just to be sure we are on a fresh start

    sudo supervisorctl stop all

  3. Put two new parameters into config belongs to your process with name

    #/etc/supervisorctl/conf.d/your_process.conf
    
    [program:<your_process>]
    ...
    stopasgroup=true
    stopsignal=QUIT
    
  4. Make sure supervisor has updated your config:

    sudo supervisorctl reread

    sudo supervisorctl update

  5. Start your process

    sudo supervisorctl start <your_process>

  6. Check you have no zombies at the process list after supervisorctl restart <your_process> by ps aux | grep "whatever indicates your process"

Helped me to solve the issue, thanks.

@enstain Thanks, works great!

The workaround doesn't work here. The processes are not killed. There isn't a notice about the fact that the processes aren't killed either.

Shouldn't this be a basic feature?

@enstain solution works for me, thanks!

@enstain solution worked for me too, thank you !!

Using kill <PID> worked for me.

Manually kill all your old processes

how to find those??

Manually kill all your old processes

how to find those??

Try
ps -A
This will display all running processes.
e.g.
ps -A | grep java
Will display all Java processes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cclauss picture cclauss  路  62Comments

felipemachado-sambatech picture felipemachado-sambatech  路  74Comments

pisymbol picture pisymbol  路  21Comments

guettli picture guettli  路  96Comments

ivan1986 picture ivan1986  路  49Comments