[PLUG] httpd down
Rich Shepard
rshepard at appl-ecosys.com
Tue Nov 9 02:56:31 UTC 2004
On Mon, 8 Nov 2004, Richard C. Steffens wrote:
> 2. What's the right way to restart httpd?
Dick,
If there's no process ID to be found then you cannot do 'SIGHUP pid'.
That's the way to restart a process so it reads its config file after
changes.
Depends on the distribution. There is an 'apachectl' file somewhere on
your system. In Slackware it's /usr/sbin/apachectl. I recall reading
somewhere that this is the approved way to start httpd. Your distribution
may also have what I have here in /etc/rc.d/rc.httpd:
[rshepard at salmo ~]$ less /etc/rc.d/rc.httpd
#!/bin/sh
#
# /etc/rc.d/rc.httpd
#
# Start/stop/restart the Apache web server.
#
# To make Apache start automatically at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.httpd
#
case "$1" in
'start')
/usr/sbin/apachectl start ;;
'stop')
/usr/sbin/apachectl stop ;;
'restart')
/usr/sbin/apachectl restart ;;
*)
echo "usage $0 start|stop|restart" ;;
esac
This does the same thing, but from the sysinit setup.
> 3. Any other thought on this problem are also welcomed.
Dust bunnies? Boredom? :-)
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the PLUG
mailing list