Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.