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

  • Thread starter Thread starter zibrnp
  • Start date Start date
Z

zibrnp

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

Code:
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.
T

Continue reading...
 
Back
Top