Linux Graceful exit/shutdown/restart Gunicorn process

Source: Internet
Author: User

In the work, will find Gunicorn started Web services, no matter how to use the Kill-9 process number is unable to kill Gunicorn, after I some Baidu and Google, found that want to delete Gunicorn process is actually very simple.

The first step gets the Gunicorn process tree:

You can get the Gunicorn process tree by executing the following command:

pstree -ap|grep gunicorn

The results are as follows:

Restart Gunicorn Task
kill -HUP 85898
3. Exit Gunicorn Task
kill -9 74430

After executing the above command, "Pstree-ap|grep Gunicorn" is executed again, and it is easy to see that, in addition to the main process, the other Gunicorn processes have been destroyed and a new process (process ID has changed).



This address: http://www.chenxm.cc/post/573.html

Linux Graceful exit/shutdown/restart Gunicorn process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.