LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 08-24-2003, 06:20 PM   #1
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Smile 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 ?
 
Old 08-24-2003, 06:24 PM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
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.
 
Old 08-24-2003, 06:24 PM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
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.)
 
Old 08-24-2003, 06:32 PM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Original Poster
Rep: Reputation: 45
Cheer guys.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with a script (bash shell, Red Hat 7.2) illiniguy3043 Linux - Newbie 7 06-01-2004 02:49 AM
Writing a script in Red Hat 7.3 mustang05 Linux - Newbie 1 04-20-2004 04:07 PM
Red Hat 9 Stop Services lindab_tsp Linux - General 1 08-07-2003 09:35 AM
need help with /script/citrix/red hat 7.0 Joachim Linux - Software 7 06-30-2003 05:20 AM
apache start script under Red Hat 5.2 Prospector Linux - Networking 1 01-31-2001 09:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration