LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Delete /etc/init.d (https://www.linuxquestions.org/questions/linux-newbie-8/delete-etc-init-d-718381/)

Ariyan 04-11-2009 03:36 AM

Delete /etc/init.d
 
hi all
i Deleted /etc/init.d anyone can help me ?

billymayday 04-11-2009 03:41 AM

Well, you'd at least need to tell us your distro so people have some idea what may be in there, and then you'd need to tell us what services you run.

I suspect you've caused no end of trouble and will need to reinstall, but see how you go.

Ariyan 04-11-2009 04:03 AM

my server is linux i installed centos-5 thanks for your answer

as far as we had cpanel but we dont have now

thanks in advance

descarte 04-11-2009 04:58 AM

oopps. i would reinstall the OS.

mrrangerman 04-11-2009 07:00 AM

I think you can rebuild the directory but you would need another system of the same configuration to get the scripts from. I do have to ask why would you delete the init.d directory?
If you don't have another system that has the same configuration you may want to do as descarte said, and reinstall as it would take some time to get all the needed scripts back.

Disillusionist 04-11-2009 10:49 AM

Doesn't anyone backup their servers anymore?

descarte 04-12-2009 03:26 AM

I can imagine sometimes when you are working late and at 50% efficiency + having a few terminal windows open and typing very fast...

there could be a chance when you do a 'rm -rf' and realised you're in the wrong terminal!

Ariyan 04-13-2009 02:27 AM

tnx all my problem is fixed

linuxlover.chaitanya 04-13-2009 03:40 AM

It would be helpful for other members or newbies coming later how you solved the problem so that they can just search and get the problem solved.

r3sistance 04-13-2009 04:47 AM

Quote:

Originally Posted by Disillusionist (Post 3505553)
Doesn't anyone backup their servers anymore?

I do... I backed up all my VPS nodes on my server three weeks ago, the dom0 is a basic CentOS/Xen installation so very easy to rebuild ;).

I wonder if it would be a idea for someone to make a package called 'foolproof linux' that stops people doing crazy/stupid things like trying to delete important parts of the file system or other such bad actions, display a huge warning message about how dangerous it is. I would try it myself but I am so out of touch with programming in the past couple of years and never touched the source codes of anything related to linux yet =/.


All times are GMT -5. The time now is 10:59 AM.