[NTLUG:Discuss] How to stop process at system shutdown
Neil Aggarwal
neil at JAMMConsulting.com
Wed Feb 14 15:25:00 CST 2001
Jim:
I changed my links to do this:
ln -s /usr/local/apache/bin/apachectl /etc/rc3.d/S85httpd
ln -s /usr/local/apache/bin/apachectl /etc/rc2.d/K15httpd
And I still dont get the apache shutdown message when I restart
the server.
Any other ideas?
Thanks,
Neil.
Jim Wildman wrote:
>
> As a general rule the numeric part of the Start/kill links should add
> up to 100. This ensures that the processes are killed in the same
> order they were started.
>
> S15command
> goes with
> K85command
>
> Also note that the kill scripts are executed as you enter the run level
> from a higher one. So if the process is started in runlevel 3, you need
> the kill script in runlevel 2.
>
> chkconfig
>
> is also a handy tool.
>
> ------------------------------------------------------------------------
> Jim Wildman Lead Consultant, marchFIRST
> jim at rossberry.com jim.wildman at marchfirst.com
> www.rossberry.com www.marchfirst.com
> (972)560-7356
> All opinions expressed are mine and not my employer's.
>
> On Wed, 14 Feb 2001, Kyle Davenport wrote:
>
> >
> >
> > Try using tksysv. It will create the correct links from start/stop scripts
> > (with console output of start/stop) in /etc/rc.d/init.d. If you look in
> > /etc/rc.d/rc you'll see it calls the "leaving runlevel" rc#.d scripts like "$i
> > stop".
> >
> >
> >
> >
> >
> >
> > Neil Aggarwal <neil at JAMMConsulting.com> on 02/13/2001 08:59:18 PM
> >
> > Please respond to discuss at ntlug.org
> >
> > To: North Texas Linux Users Group <discuss at ntlug.org>
> > cc: (bcc: Kyle Davenport/Is/Corporate/CompUSA)
> > Subject: [NTLUG:Discuss] How to stop process at system shutdown
> >
> >
> >
> > Hello:
> >
> > I am using RedHat 7.0.
> >
> > I am trying to figure out how to get apache to stop and start
> > at system startup and shutdown.
> >
> > I installed apache 1.3.14 in /usr/local/apache. It has a
> > SysV-type start and stop file in /usr/local/apache/bin/apachectl,
> > so I added these links:
> > ln -s /usr/local/apache/bin/apachectl /etc/rc3.d/S85httpd
> > ln -s /usr/local/apache/bin/apachectl /etc/rc3.d/K85httpd
> >
> > When I start the system I see a message that apache is
> > starting, but when I shutdown the system, I dont see a
> > message that apache is stopping.
> >
> > I added an echo statement to the stop case of the apachectl file,
> > but I dont get that message.
> >
> > Can someone guide me on this?
> > I am sure it is something simple, but I dont fully understand
> > the SysV stuff.
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > http://ntlug.org/mailman/listinfo/discuss
> >
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases
More information about the Discuss
mailing list