Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* httpd at startup...
@ 1996-06-20  4:00 Cardell Orrin
  1996-06-21  4:00 ` Kevin Jacobs
  0 siblings, 1 reply; 2+ messages in thread
From: Cardell Orrin @ 1996-06-20  4:00 UTC (permalink / raw)



Is there anyone out there who can give me a sample scipt for rc3.d to
start httpd at startup???

thanx,

Cardell

--
Cardell Orrin 				     The Vision Online
cardell@eniac.seas.upenn.edu		     vision@dolphin.upenn.edu
cardell@mecca.mecca.org			     http://dolphin.upenn.edu/~vision/
	       http://www.seas.upenn.edu/~cardell/cjo.html

	



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: httpd at startup...
  1996-06-20  4:00 httpd at startup Cardell Orrin
@ 1996-06-21  4:00 ` Kevin Jacobs
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Jacobs @ 1996-06-21  4:00 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-06-21  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-20  4:00 httpd at startup Cardell Orrin
1996-06-21  4:00 ` Kevin Jacobs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox