Reset rc.d so software starts at boot again
Posted
by
natli
on Super User
See other posts from Super User
or by natli
Published on 2012-11-28T21:03:51Z
Indexed on
2012/11/28
23:06 UTC
Read the original article
Hit count: 241
debian-squeeze
I ran the following 2 commands on my VPS box and now it boots without starting any software at all. According to rcconf
it's still supposed to start my chosen software (ssh etc.) but it doesn't.
update-rc.d vz defaults
update-rc.d vzeventd defaults
I already tried removing them again with
update-rc.d -f vz remove
update-rc.d -f vzeventd remove
But that didnt't change anything.
/etc/rc.local
also still correctly lists some scripts I want to run at start-up, but they don't seem to be called either.
I expect the top 2 commands to be responsible, but here's everything I did:
mkdir /var/openvz-dl
cd /var/openvz-dl
wget http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab062.2/vzkernel-2.6.32-042stab062.2.x86_64.rpm
wget http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab062.2/vzkernel-devel-2.6.32-042stab062.2.x86_64.rpm
wget http://download.openvz.org/utils/vzctl/4.0/vzctl-4.0-1.x86_64.rpm
wget http://download.openvz.org/utils/vzctl/4.0/vzctl-core-4.0-1.x86_64.rpm
wget http://download.openvz.org/utils/ploop/1.5/ploop-1.5-1.x86_64.rpm
wget http://download.openvz.org/utils/ploop/1.5/ploop-lib-1.5-1.x86_64.rpm
wget http://download.openvz.org/utils/vzquota/3.1/vzquota-3.1-1.x86_64.rpm
apt-get install fakeroot alien
fakeroot alien --to-deb --scripts --keep-version vz*.rpm ploop*.rpm
dpkg -i vz*.deb ploop*.deb --force-overwrite
update-rc.d vz defaults
update-rc.d vzeventd defaults
reboot
A huge part of that failed because I was running it on an OpenVZ VPS which has a shared kernel that can't be altered, so I also had to fix the dpkg like so (it was moaning about wanting to install vzkernel with a package not being found);
rm /var/lib/dpkg/info/vzkernel*
dpkg-reconfigure vzkernel --force
dpkg --purge --force-all vzkernel
But that didn't fix the boot issue either. How do I make my software start at boot again?
© Super User or respective owner