[NTLUG:Discuss] How to stop process at system shutdown

Gregory L. Camp Gregory.Camp at osc.com
Wed Feb 14 15:07:57 CST 2001


Neil,

You shouldn't put the start/stop commands in the same rc?.d directory (rc3.d
in your example).  The stop command should be in rc0.d and rc6.d instead.

You enter rc0.d when you shutdown and halt (i.e. shutdown -h now), and rc6.d
when you shutdown and reboot (i.e. shutdown -r now).

Greg

> -----Original Message-----
> From: Neil Aggarwal [mailto:neil at JAMMConsulting.com]
> Sent: Tuesday, February 13, 2001 8:59 PM
> To: North Texas Linux Users Group
> 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.
> 
> Thanks,
> 	Neil.
> 
> --
> Neil Aggarwal
> JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
> Custom Internet Development -- Java, JSP, servlets, databases
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
> 



More information about the Discuss mailing list