Koozali.org: home of the SME Server

restart-httpd-graceful in sme7.0pre

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
restart-httpd-graceful in sme7.0pre
« 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
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
restart-httpd-graceful in sme7.0pre
« Reply #1 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
If you think you know whats going on, you obviously have no idea whats going on!

Offline gizzmo2k1

  • **
  • 33
  • +0/-0
    • 7 Fifty-Two
restart-httpd-graceful in sme7.0pre
« Reply #2 on: January 24, 2006, 11:00:03 PM »
I use:

service httpd-admin restart
service httpd-e-smith restart
............Gizzmo...............
SME 7.2 / P4 2.6Ghz / 320GB SATA / 2GB RAM

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
restart-httpd-graceful in sme7.0pre
« Reply #3 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
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline byte

  • *
  • 2,183
  • +2/-0
restart-httpd-graceful in sme7.0pre
« Reply #4 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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
restart-httpd-graceful in sme7.0pre
« Reply #5 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.

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
restart-httpd-graceful in sme7.0pre
« Reply #6 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.
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.