I have accidentally removed my apache2 startup file
rm /etc/init.d/apache2 command.
How can I get that back?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
This won't help you after the event, but I highly recommend etckeeper. It maintains your
/etc in a git/mercurial/darcs/bzr repository more or less automatically. It works best on Debian/Ubuntu where it's tied in with apt to make automatic commits before and after package installs, but it's usable on any Unix system. I'm using it on Mac OS X, for example. I can see the entire history of my
/etc directory, and pull out previous versions of files when I need to.
Never tried it.
Depending on your filesystem you could try the following: