LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-11-2009, 03:36 AM   #1
Ariyan
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
Delete /etc/init.d


hi all
i Deleted /etc/init.d anyone can help me ?
 
Old 04-11-2009, 03:41 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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.
 
Old 04-11-2009, 04:03 AM   #3
Ariyan
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Original Poster
Rep: Reputation: 0
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

Last edited by Ariyan; 04-11-2009 at 04:10 AM.
 
Old 04-11-2009, 04:58 AM   #4
descarte
LQ Newbie
 
Registered: Mar 2009
Location: melbourne
Distribution: rhel, centos, debian, ubuntu
Posts: 18

Rep: Reputation: 1
oopps. i would reinstall the OS.
 
Old 04-11-2009, 07:00 AM   #5
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
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.
 
Old 04-11-2009, 10:49 AM   #6
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Doesn't anyone backup their servers anymore?
 
Old 04-12-2009, 03:26 AM   #7
descarte
LQ Newbie
 
Registered: Mar 2009
Location: melbourne
Distribution: rhel, centos, debian, ubuntu
Posts: 18

Rep: Reputation: 1
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!
 
Old 04-13-2009, 02:27 AM   #8
Ariyan
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Original Poster
Rep: Reputation: 0
tnx all my problem is fixed
 
Old 04-13-2009, 03:40 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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.
 
Old 04-13-2009, 04:47 AM   #10
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by Disillusionist View Post
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 =/.
 
  


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
kernal panic no init found try passing init option to kernel m2azer Linux - General 3 11-08-2007 01:51 PM
exec of init (/sbin/init) failed!!! kernel panic KiraII Linux - Kernel 1 07-13-2007 09:07 PM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-18-2004 11:10 PM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 10:18 PM

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

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