Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: stiperstones on January 22, 2006, 09:28:06 PM

Title: restart-httpd-graceful in sme7.0pre
Post by: stiperstones on January 22, 2006, 09:28:06 PM
Hi all

what is the command to restart restart-httpd-graceful in sme7.0pre

This one does not work

/etc/e-smith/events/actions/restart-httpd-graceful
Title: restart-httpd-graceful in sme7.0pre
Post by: crazybob on January 22, 2006, 09:51:22 PM
What I found to use is

httpd -k restart

I don't know is that is the truly graceful way, but it works


Bob
Title: restart-httpd-graceful in sme7.0pre
Post by: gizzmo2k1 on January 24, 2006, 11:00:03 PM
I use:

service httpd-admin restart
service httpd-e-smith restart
Title: restart-httpd-graceful in sme7.0pre
Post by: stiperstones on January 24, 2006, 11:18:29 PM
Quote from: "gizzmo2k1"
I use:

service httpd-admin restart
service httpd-e-smith restart


Thanks gizzmo2k1

I always seem to get the answer in the forum again thanks
Title: restart-httpd-graceful in sme7.0pre
Post by: byte on January 25, 2006, 12:06:46 AM
Hi,

I wouldn't use service httpd-e-smith restart as it is deprecated and you may not start all the correct services (due to sme templating)

The correct way would be to do...

/etc/rc7.d/S86httpd-emith restart

Doing it the above way will be the way to do it
Title: restart-httpd-graceful in sme7.0pre
Post by: CharlieBrady on January 25, 2006, 04:10:44 AM
Quote from: "byte"

/etc/rc7.d/S86httpd-emith  restart


Very close. You'll actuall want:

/etc/rc7.d/S86httpd-emith sigusr1

The distinction is fine - "sigusr1" does the equivalent of "graceful" - it doesn't interrupt existing transfers.

"signal-event remoteaccess-update" is a simple way to reconfigure apache without needing to know any details.
Title: restart-httpd-graceful in sme7.0pre
Post by: stiperstones on January 25, 2006, 08:52:53 PM
To all
Thank you all for the answers and to CharlieBrady for the correct way to issue the command.