LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Where does YaST store it's configuration? (https://www.linuxquestions.org/questions/suse-opensuse-60/where-does-yast-store-its-configuration-309925/)

mikemrh9 04-05-2005 07:44 AM

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.

abisko00 04-05-2005 07:51 AM

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)

mikemrh9 04-05-2005 08:03 AM

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.

abisko00 04-05-2005 08:24 AM

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).

mikemrh9 04-05-2005 08:41 AM

Thanks v. much - I have it cracked now!


All times are GMT -5. The time now is 01:21 PM.