Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Scripts in /etc/rc.d/init.d deleted

    Hello, someone removed all of the scripts from /etc/rc.d/init.d/ and I am trying to get it back using below command.

    rpm -Va | awk '/missing.*init.d/ {print $NF}' | xargs rpm -qf --queryformat '%{name} ' | xargs yum -y reinstall
    It re-installs all of the scripts that were previously installed.
    But I know that I had "passenger" and I am not sure why above command did not bring back "passenger" script.
    Maybe because it was not installed via RPM?

    Is there another way of solving problem with missing scripts in /etc/rc.d/init.d ?

    Thanks for any suggestion.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Under different names, the scripts are also found in /etc/rc.d/rc0.d...rc6.d. You also might be able to restore the "passenger" script by reinstalling the "passenger" package with yum: yum reinstall passenger
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts