LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-29-2004, 09:11 PM   #1
Obie
Member
 
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?

Thanks!
 
Old 05-29-2004, 10:26 PM   #2
bureado
Member
 
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, 02:58 AM   #3
Obie
Member
 
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:22 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