[lug] Apache start on boot

Riggs, Rob RRiggs at doubleclick.net
Tue Aug 7 18:07:16 MDT 2001


Trust me, there are *lots* of things, coming from a Linux background, that
will drive one batty about Solaris. :-)


-----Original Message-----
From: Nate Duehr [mailto:nate at natetech.com]
Sent: Tuesday, August 07, 2001 6:02 PM
To: lug at lug.boulder.co.us
Subject: Re: [lug] Apache start on boot


And be forewarned that chkconfig is a "redhat-ism" and not available on
ALL Linux's.  :-)  But still a useful tool...

Another thing coming from Solaris that'll drive you batty is that
RedHat's init jumps STRAIGHT TO THE RUNLEVEL without starting
everything in previous runlevels.  If you're used to Solaris, you'll
wonder why when you go to a higher runlevel, things aren't running from
lower levels.  You have to have appropriate symlinks in the directory
structure to start whatever you need at EACH of the runlevels.

On Tue, Aug 07, 2001 at 01:45:57PM -0600, Scott A. Herod wrote:
> Note, that if you add:
> 
> # chkconfig: 2345 08 92
> # description: My start and stop script.
> 
> (Yes it needs to be commented.)
> 
> to the start of your script in init.d, you can use chkconfig to
> automatically
> set the Start and Kill symlinks for you.  See the chkconfig man page and
> some of the existing init.d scripts.
> 
> Scott
> 
> dan radom wrote:
> > 
> > here's the script i use to start apache...
> > 
> > <snip>
> > #!/bin/sh
> > # dan at radom.org | modified 01.03.2001
> > case "$1" in
> >   start)
> >  echo -n "starting httpd..."
> >  /usr/local/apache/bin/apachectl start
> > ;;
> > 
> >   stop)
> >  echo -n "stopping httpd..."
> >  /usr/local/apache/bin/apachectl stop
> > ;;
> > 
> >   restart)
> >  echo -n "stopping httpd..."
> >         /usr/local/apache/bin/apachectl restart
> > ;;
> > 
> >   fullstatus)
> >  /usr/local/apache/bin/apachectl fullstatus
> > ;;
> > 
> >   status)
> >  /usr/local/apache/bin/apachectl status
> > ;;
> > 
> >   graceful)
> >  /usr/local/apache/bin/apachectl graceful
> > ;;
> > 
> >   configtest)
> >  /usr/local/apache/bin/apachectl configtest
> > ;;
> > 
> >   help)
> >  /usr/local/apache/bin/apachectl help
> > ;;
> > 
> >   *)
> >  echo "*** Usage: httpd
{start|stop|restart|fullstatus|status|graceful|configtest|help}"
> >  exit 1
> > esac
> > </snip>
> > 
> > the script is in init.d and symlinked to my runlevel...rc3.d
> > 
> > hope this helps,
> > 
> > dan
> > 
> > * Chad Wasinger (cswasinger at qwest.net) wrote:
> > > Man this RH sure is different than Solaris. Ok no matter where I put
this I
> > > can't get Apache httpd to start on boot.
> > > I put an S99 script in /etc/rc2.d and /etc/rc3.d and still no go, what
is
> > > the trick?
> > >
> > > Thanks to everyone for the help so far!
> > >
> > > Chad
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug

-- 
Nate Duehr <nate at natetech.com>

GPG Key fingerprint = DCAF 2B9D CC9B 96FA 7A6D AAF4 2D61 77C5 7ECE C1D2
Public Key available upon request, or at wwwkeys.pgp.net and others.
_______________________________________________
Web Page:  http://lug.boulder.co.us
Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list