开发者

Graceful Apache Stop in Ubuntu

开发者 https://www.devze.com 2023-01-22 10:05 出处:网络
I can do sudo $ service apache2 graceful and it\'ll do a graceful restart, but looking at /etc/init.d/apache2, the only way I can do a graceful shutdown is is running $ /usr/sbin/apache2ctl -k gracefu

I can do sudo $ service apache2 graceful and it'll do a graceful restart, but looking at /etc/init.d/apache2, the only way I can do a graceful shutdown is is running $ /usr/sbin/apache2ctl -k graceful-stop

But that results in a PID error: httpd (pid xxxx开发者_开发百科x?) not running

Obviously Ubuntu/Debian does not mean for me to run this command directly.

Basically wat I'd like to do is do a graceful shutdown (as in wait for requests to complete), perform my upgrades, and start the server again.


The command you are using should be fine. I would guess the error you see might be a watch dog function throwing an error.

apachectl -k graceful-stop

http://httpd.apache.org/docs/2.1/stopping.html

0

精彩评论

暂无评论...
验证码 换一张
取 消