LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-05-2005, 07:44 AM   #1
mikemrh9
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 136

Rep: Reputation: 21
Where does YaST store it's configuration?


I'm trying to track down the location(s) where information governing the statup/shutdown of services for different runlevels is stored by YaST, as it doesn't seem to be '/etc/init.d'

Any ideas, please?

Mike.
 
Old 04-05-2005, 07:51 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Yes it is /etc/init.d!

The scripts are directly in this directory, the start and stop order is defined by the links from the different runlevel directories (e.g. /etc/init.d/rc5.d)
 
Old 04-05-2005, 08:03 AM   #3
mikemrh9
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 136

Original Poster
Rep: Reputation: 21
Thanks for your reply. Is there any chance that you could shed some light on this related issue?...

http://www.linuxquestions.org/questi...hreadid=309914

in particular, question 2!!

Mike.

Last edited by mikemrh9; 04-05-2005 at 08:05 AM.
 
Old 04-05-2005, 08:24 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
My knowledge is limited, but I try to do my best:

When you enter a runlevel, the scripts in the corresponding directory are run sequentially. Every service should have two symlinks, one named S##service, the other K##service. When you enter the runlevel, the 'S' scripts are invoked, leaving it, the 'K' scripts run. Since both links point to the same script, the actual work is done by this script: it checks if the service is running (/etc/rc.status) and then it starts or stops the service accordingly. You can also run these scripts from command line, by passing the variable 'start|stop|restart'.

So a quick answer to your question is: the service is started from the script /etc/init.d/rc3.d/S##apache2 and shutdown with /etc/init.d/rc3.d/K##apache2 when you leave the runlevel. The number defines the order in which scripts are being started/shut-down.

EDIT: There is a very helpful README in /etc/init.d. From this I have learned that the script /etc/init.d/rc does the actual work (finding out if a runlevel has to be started or stopped, and in which runlevel it has to be started/stopped).

Last edited by abisko00; 04-05-2005 at 08:30 AM.
 
Old 04-05-2005, 08:41 AM   #5
mikemrh9
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 136

Original Poster
Rep: Reputation: 21
Thanks v. much - I have it cracked now!
 
  


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
grub configuration using yast does not work fremder Linux - Newbie 10 10-07-2005 05:02 AM
YAST software update configuration MaestroC SUSE / openSUSE 3 10-06-2005 08:35 PM
Alsa doesn´t save my configuration, alsactl store neither fedivh Linux - Hardware 1 01-25-2005 06:31 PM
no LDAP server configuration module for YaST? nitroid SUSE / openSUSE 1 12-09-2004 05:40 PM
How to remove a DSL Configuration with yast Putbinoot Linux - Newbie 2 10-01-2002 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:41 PM.

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