LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-26-2003, 12:08 AM   #1
MRK
Member
 
Registered: Jan 2002
Posts: 60

Rep: Reputation: 15
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
 
Old 11-26-2003, 01:15 AM   #2
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
/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.
 
Old 11-26-2003, 07:50 AM   #3
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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!]
 
Old 11-26-2003, 04:57 PM   #4
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
^^ neat trick.
 
Old 11-27-2003, 12:53 PM   #5
MRK
Member
 
Registered: Jan 2002
Posts: 60

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

-Matt
 
Old 11-27-2003, 07:12 PM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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
 
  


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
Ph&#7909;c h&#7891;i d&#7919; li&#7879;u b&#7883; m&#7845;t???, c&#7913; pollsite General 1 06-27-2005 12:39 PM
Which distros use BSD-style layout for initialization files, and which System V's? kornerr Linux - General 5 06-11-2005 08:27 PM
initialization files run multiple times Brad Richards Linux - Newbie 2 02-19-2005 10:56 AM
crontab & quota files are temporary files? hamish Linux - Software 0 07-10-2004 02:09 PM
How can konqueror view html files in .gz & .bz2 files directly? ailinzhe Linux - Software 5 05-24-2004 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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