LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2006, 07:23 AM   #1
flipwhy
Member
 
Registered: Jul 2006
Posts: 102

Rep: Reputation: 15
cant find domainname in init.d?


how do i put my domainname back into /etc/init.d?
also the same for hald and xdm..
coz it keeps giving me errors that they dont exist in /etc/init.d while booting up...
i tried re-installing xdm..
i use gentoo distro.
 
Old 09-02-2006, 05:45 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I don't use gentoo.

Having said that. /etc/init.d is typically the location of init (start/stop) base scripts. Typically there are links from the directories /etc/rc?.d back to /etc/init.d where ? is one of the run levels (0-6,S). The relevant run level is the on where the script is started (S##script) or stopped (K##script). ## is an ordering number as to when it stops or starts compared to other scripts in the same directory. "script" is any name and usually is the same as you'd have in /etc/init.d with the S## or K##.

e.g. /etc/rc3.d/S21domainanme would be a symbolic link to /etc/init.d/domainanme.

NOTE: Above is an example only - it is unlikely to be the one you need. On my Fedora Core 4 I don't have domainname.

Try doing "ls -l /etc/rc?.d/*domainname" to see if it shows any links back to /etc/init.d. (Do same for *hald and *xdm.) If they are there look to see if the file they refer to is there. If not it would appear you've somehow deleted your init scripts (and there may be others missing as well). You can google to see if someone has the scripts available. (Since they are text scripts you can cut and past into them if you find them on line.)
 
Old 09-02-2006, 07:09 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,752

Rep: Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972
If this was a working system, sounds like you did an etc-update and allowed it to overwrite automatically.
Never do that - and given the number of changes in baselayout recently, you'll have some work ahead of you to manually rebuild those conf files.
Should all be in the handbook.

If you used dispatch-conf, you should have backups created for you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Where to find info about INIT 5 jakkals Linux - Software 1 01-20-2005 03:06 AM
kernel panic: can't find init novacrasher Linux - Hardware 2 12-20-2004 12:27 PM
PPC Can't find Init! Gantrep Linux - Software 0 11-26-2003 08:29 PM
Kernel panic, can't find INIT. DarkDrive Linux - General 6 08-06-2003 10:02 AM
Can't find /etc/rc.d/init.d hubabuba Slackware 2 03-25-2003 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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