LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   What initialization Files & where (https://www.linuxquestions.org/questions/mandriva-30/what-initialization-files-and-where-120033/)

MRK 11-26-2003 12:08 AM

What initialization Files & where
 
Hello all. I have a fairly simple question. I would like to what file(s) mandrake uses to start its system up. Like the init or rc.d files. (the files that the kernel calls after it loads) I like the way mandrake starts (thats really about all i like about it). You have the pretty little green brackets by each item that starts. If you could tell what and where they are i'd really appriciate it!!

If you feel even more generous, you might tell me a place where i can get them. lol. I dont really want to install mandrake completely just for those files. If not i can google around and find somewhere i can get them.

Thanks again!!!

-Mr.K

wldkos 11-26-2003 01:15 AM

/etc is where all the system configuration file reside. In there you will find /etc/mtab /etc/fstab /etc/init.d/ /etc/rc.local/X/ and a bunch of other things. Read around and check it out. You did not specify whice version of mdk either. I can't remember the path off hand either.

/bin/bash 11-26-2003 07:50 AM

The file responsible for the [ OK ] is /etc/rc.d/init.d/functions. This file is never run by itself but is instead sourced by other scripts in the boot process, such as rc.sysinit and rc.local. If you get tired of looking at green OK when you boot you can edit that file and make it print clever messages when something happens. To test the results just do this:

Code:

[init.d]# . ./functions;echo_success   
[init.d]# . ./functions;echo_failure                            [ COOL ]
[init.d]# . ./functions;echo_passed                            [BUMMER]
[init.d]# . ./functions;echo_warning                            [ZOUNDS]
[init.d]#                                                      [YIKES!]


wldkos 11-26-2003 04:57 PM

^^ neat trick.

MRK 11-27-2003 12:53 PM

Do you know where i can get that file? or could you post the source? I cant find it on google. Thanks again!

-Matt

/bin/bash 11-27-2003 07:12 PM

It's part of the initscripts rpm. You can't just put that file in /etc/rc.d/init.d directory and it will work. Like I said it is sourced by rc.sysinit and rc.local as well as by the init.d scripts. It's all part of the SysV initialization scripts.

But if you want it it is in this rpm.
ftp://mirror.cs.wisc.edu/pub/mirrors...32mdk.i586.rpm


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