From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5f5a26dfdbba793c X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-05 01:39:15 PST Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!Germany.EU.net!news.dfn.de!gs.dfn.de!fauern!rrze.uni-erlangen.de!tp2aw1!eckstein From: eckstein@tp2aw1.physik.uni-erlangen.de (Ralf Eckstein) Newsgroups: comp.unix.osf.osf1 Subject: Re: Demon on startup Date: 5 Aug 94 08:01:48 GMT Organization: Regionales Rechenzentrum Erlangen, Germany Message-ID: References: <31tua3$ahc@surf.kowande.Bond.edu.au> NNTP-Posting-Host: tp2aw1.physik.uni-erlangen.de X-Newsreader: NN version 6.5.0 #3 (NOV) 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