LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-29-2004, 07:00 AM   #1
BurceB7
LQ Newbie
 
Registered: Mar 2004
Distribution: Red Hat
Posts: 9

Rep: Reputation: 0
Question Can you change the order in which services start in Red Hat 9?


Hello

I have a Red Hat 9 box

I need to change the order in which some of the services start.

Namely, I would like IPTABLES to be the last service to start.

The reason for this is that something that is running after IPTABLES starts, is disabling my FTP outbound access?

Is this possible, and if so, how would I go about doing this?

Thanks

Bruce
 
Old 04-29-2004, 07:09 AM   #2
profjohn
Member
 
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

Rep: Reputation: 30
This was useful for me, as my pcmcia needed to start before eth0:

Most Linux systems have an '/etc/rc.d/' or '/etc/init.d/' directory which contains all your rc scripts and a directory corresponding to each run level 'rc<runlevel>.d'. Inside each of these directory you will find symbolic links to the scripts in the previous directory. The links are named 'S<number><serviceName> or K<number><serviceName>. All the links which begin with an S are started in alphabetical order when changing up to the runlevel and all the links which begin with a K are stopped in (IIRC) reverse alphabetical order when change down to a lower runlevel. Therefore if you currently have two sym. links '/etc/rc.d/rc3.d/S12network' and '/etc/rc.d/rc3.d/S13pcmcia', then you can make pcmcia start first by renaming the sym. link to 'S11pcmcia'. This method technique is known as 'Sys V Init(ilization)'

BTW some distros have a management layer which takes care of your sym. links. For example SuSE allows you to list what the service dependends on and what it provides, in a comment at the top of rc script. On SuSE, if you change the sym. links manually, without changing the comments at the top of the rc script, then the order can switch back as SuSE maintains itself.

This comes from: http://www.linuxformat.co.uk/modules...4148&forum=1&1

However, it sounds like you need to look at your ip tables and see if ftp is getting disabled there...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Services for Macintosh on Red Hat Enterprise 4.0 gizet Red Hat 0 09-22-2005 06:02 AM
How to change order services are started in? fclifton Red Hat 5 08-16-2004 07:08 PM
VNC Services on Red Hat 7.3 mustang05 Linux - General 1 01-15-2004 09:40 PM
VNC Services on Red Hat 7.3 mustang05 Linux - General 1 01-15-2004 01:34 PM
Red Hat 9 Stop Services lindab_tsp Linux - General 1 08-07-2003 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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