From: eckstein@tp2aw1.physik.uni-erlangen.de (Ralf Eckstein)
Subject: Re: Demon on startup
Date: 5 Aug 94 08:01:48 GMT [thread overview]
Message-ID: <eckstein.776073708@tp2aw1> (raw)
In-Reply-To: 31tua3$ahc@surf.kowande.Bond.edu.au
t.woo@dstc.edu.au (Tak Woo) writes:
>How do I add demons such as httpd to let it start at boot time. In
>Ultrix I add them into rc.local, but I am not sure how I can add them
>to /sbin/rc3.d.
I have installed the following script to /sbin/rc3.d/S97httpd (use the
appropriate number). All files in /sbin/rc3.d are executed while
the system is changing to run level 3, so you can add scripts of your own.
Numbering the files is neccessary to have them executed in the right order.
Ralf.
######################### begin #####################################
#!/sbin/sh
#
# HISTORY
#
# @(#)httpd
#
# Ralf Eckstein 27.7.1994
#
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
case "$1" in
'start')
/usr/sbin/httpd -r /usr/local/lib/www/httpd.conf
echo "http daemon started"
;;
'stop')
;;
esac
######################### end #######################################
--
__
Ralf Eckstein \/ eckstein@tp2.physik.uni-erlangen.de
prev parent reply other threads:[~1994-08-05 8:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-08-05 17:53 Demon on startup Tak Woo
1994-08-05 8:01 ` Ralf Eckstein [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