Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-24-2003, 06:20 PM
|
#1
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
How to stop Red Hat script
Hi guys:
I'm not quite sure how to stop a start script in Red Hat 9.
If I'm running in run level 5 and the relevant symlinks to
/etc/rc.d/init.d
are in
/etc/rc.d/rc5.d
.... If I want to stop a prog running at start up do I just create a symlink from a prog in
/etc/rc.d/init.d
to
/etc/rc.d/rc5.d
and then rename the symlink with a Kxx at the start of the name (the xx being the order number)
Would a kill symlink in /etc/rc.d/rc5.d stop the relevant prog running from /etc/rc.d/init.d ?
|
|
|
08-24-2003, 06:24 PM
|
#2
|
Senior Member
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263
Rep:
|
if you dont want the script to run in the first place then remove the S symlink to it. theres bound to be a good explanation of SYSV init scripts on the net somewhere, i suggest you google before you start removing/adding symlinks.
|
|
|
08-24-2003, 06:24 PM
|
#3
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
You can just remove the Sxx Thats starting the script. The Kxx scripts are for when your switch runlevels (Like when you shutdown or restart). and are generally in rc0.d, rc1.d and rc6.d. (although this may vary according to your setup.)
|
|
|
08-24-2003, 06:32 PM
|
#4
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Original Poster
Rep:
|
Cheer guys.
|
|
|
All times are GMT -5. The time now is 03:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|