From: jacobs@darwin.cwru.edu (Kevin Jacobs)
Subject: Re: httpd at startup...
Date: 1996/06/21 [thread overview]
Message-ID: <4qe1il$g7j@madeline.INS.CWRU.Edu> (raw)
In-Reply-To: 4qcgd3$lfl@netnews.upenn.edu
Cardell Orrin (cardell@red.seas.upenn.edu) wrote:
: Is there anyone out there who can give me a sample scipt for rc3.d to
: start httpd at startup???
#!/sbin/sh
#
# Very simple /sbin/init.d script to fire off an HTTP Daemon
# Must be modified for site specific use. No animals used in
# testing. Should not hurt small children. Keep out of reach
# of small animals.
@
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
WWWHOME=/home/www
case "$1" in
'start')
set `who -r`
if [ $9 = "S" ]; then
if /home/www/httpd -f $WWWHOME/conf/httpd.conf; then
echo "HTTP daemon started"
fi
fi
;;
'stop')
kill -TERM `cat $WWWHOME/logs/httpd.pid`
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
prev parent reply other threads:[~1996-06-21 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-20 4:00 httpd at startup Cardell Orrin
1996-06-21 4:00 ` Kevin Jacobs [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox