From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c2674739d7791d85 X-Google-Attributes: gidfee84,public From: jacobs@darwin.cwru.edu (Kevin Jacobs) Subject: Re: httpd at startup... Date: 1996/06/21 Message-ID: <4qe1il$g7j@madeline.INS.CWRU.Edu>#1/1 X-Deja-AN: 161368607 references: <4qcgd3$lfl@netnews.upenn.edu> organization: Case Western Reserve University, Cleveland OH (USA) newsgroups: comp.unix.osf.osf1 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