Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348929 - /etc/init.d/cherokee script doesn't offer graceful restart
Summary: /etc/init.d/cherokee script doesn't offer graceful restart
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High enhancement
Assignee: José Alberto Suárez López (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-17 09:15 UTC by A Collector
Modified: 2011-09-16 11:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A Collector 2010-12-17 09:15:30 UTC
Currently with Cherokee 1.0.10
The script on /etc/init.d/cherokee has these two problems:
1/ It doesn't offer graceful restart
2/ Its hard restart doesn't work well as it doesn't kill all php-fpm (or php-cgi) processes.

Complete report from http://code.google.com/p/cherokee/issues/detail?id=1081



What steps will reproduce the problem?
1. There's no /etc/init.d/cherokee graceful
2. Using /etc/init.d/cherokee restart mostly doesn't work on the production server. Seems that the php-fpm processes are not being killing properly. For this reason I'm currently restarting cherokee with these commands:
/etc/init.d/cherokee stop
pkill -9 -f php-fpm
pkill -9 -f cherokee
pkill -9 -f cherokee-worker
/etc/init.d/cherokee start


What is the expected output? What do you see instead?

I'd expect there to be a graceful restart from command line as there is one from the admin interface. Also, I'd expect the hard restart script to work properly by killing all spawned php-fpm (before it was php-cgi)

What version of the product are you using? On what operating system?
1.0.10 (happened in previous versions as well)
Now with php-fpm but previously with php-cgi
OS: Gentoo linux
Comment 1 Alvaro Lopez Ortega 2010-12-21 11:37:35 UTC
The bug also filled against the project's BTS:  http://bugs.cherokee-project.com/1081
Comment 2 MATSUU Takuto (RETIRED) gentoo-dev 2011-09-16 11:57:22 UTC
fixed in cvs.