Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 05-29-2004, 10:11 PM   #1
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Rep: Reputation: 30
Question Turning Off Services

I am aware there are various ways of starting and stopping services. I am using Red Hat and am learning on securing my box via command line. I have learn that I can use ntsysv or /usr/sbin/setup or manually edit the rc*.d files. Now what I started comparing what I did via ntsysv against rc3.d. I notice that each service is denoted with a number e.g. S05kudzu which starts kudzu during the boot up process of Linux. Now if I turn off kudzu via ntsysv it changes the denotion to K95kudzu. I'm confused. I thought to turn off services I simply replace the capitalised "S" with "s". Adding further to my confusion is how did S05kudzu become K95kudzu and what I am emphasizing on is the number "05" and "95". Can anyone explain to me why 'K" is used in place of "s" and how does one denote the numbering of these services?

Old 05-29-2004, 11:26 PM   #2
Registered: Oct 2003
Location: Caracas
Distribution: Knoppix 3.3 (Debian sarge/sid)
Posts: 72

Rep: Reputation: 15
In each n-runlevel (rcn.d), some "services" (which actually are scripts who execute services or commands) are started and some are killed. Some distributions, like Debian, actually "jumps" some runlevels (if I'm not wrong, from 3 to 5) because it's more quick to start the system that way.

In /etc/rcn.d/ you will find some symbolic links to scripts in /etc/init.d. Those links are named S** or K**. That means that they are being Started or Killed in that runlevel. The two following numbers are telling init in which order they are being started (or killed). Sometimes, a script which is runned first is going to be killed last (in some way, scripts might need 'dependencies' and that's what the order says).

It's ok to have two Sxx or Kxx with the same numbers (when one adds a script which doesn't need others to be runned, one probably will link it as S99 or K99 -start and kill at last-).
Old 05-30-2004, 03:58 AM   #3
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Original Poster
Rep: Reputation: 30
Thank you for your help


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
Getting an RPC errors after turning off services ceci2 Linux - Newbie 2 04-03-2005 03:28 PM
TightVNC Ver terminal Services.. also looking for terminal Services for linux 2782d4 Linux - Security 3 05-20-2004 03:30 AM
turning off dfownz Slackware 1 01-14-2004 08:53 PM
turning off services a-money Linux - Distributions 1 08-05-2003 08:00 PM
Turning off services? ludwig W Linux - General 7 05-09-2003 05:02 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:48 AM.

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