New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service supervisord restart - it doesn't kill old processes, just add new #600

Closed
reggin opened this Issue Mar 30, 2015 · 7 comments

Comments

7 participants
@reggin

reggin commented Mar 30, 2015

Then I have each program duplication.

@reggin reggin changed the title from service supervisord restart - doesn't kill old processes, just add new to service supervisord restart - it doesn't kill old processes, just add new Mar 30, 2015

@reggin reggin closed this Mar 30, 2015

@andriytkachiv

This comment has been minimized.

andriytkachiv commented Jul 19, 2015

I also have this issue, how to fix this?

@enstain

This comment has been minimized.

enstain commented Mar 16, 2017

@andriytkachiv Any luck with it?

@enstain

This comment has been minimized.

enstain commented Mar 16, 2017

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 <your_process> 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"

@hyp3rv1p3r

This comment has been minimized.

hyp3rv1p3r commented Jul 21, 2017

Helped me to solve the issue, thanks.

@kjunggithub

This comment has been minimized.

kjunggithub commented Jan 4, 2018

@enstain Thanks, works great!

@fiatjaf

This comment has been minimized.

fiatjaf commented Apr 24, 2018

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?

@MihaelIsaev

This comment has been minimized.

MihaelIsaev commented May 7, 2018

@enstain solution works for me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment