Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This happened a while ago, but I installed some software and it messed up my entire app-get command so I had to do all this manual deleting and stuff. Everything is fixed except now when I restart the server it doesn't start the networking daemon it and won't allow me to connect. I put in a ticket with the vps company and they said there servers and unmanaged and can only restart the daemons manually by doing:

/etc/init.d/networking start
/etc/init.d/ssh start

They said they cannot do it for me, but they told me this:

The problem is that the networking script is not being called and in turn the SSH daemon is not being loaded

you need to make some configuration changes to ensure they are started each time.

Worst case you would put these two commands in the /etc/rc.local file as a quick and dirty solution whilst you try to diagnose the cause of the failure.

I tried update-rc.d ssh defaults and still didn't work.

Anyone able to help out? I'm not the best network admin.

My distro is Ubuntu 10.04.

share|improve this question
    
Try the same for each file in /etc/init.d that start with net. You may want to try the command ` for x in net*; do update-rc.d -n $x enable ; done` to see what might happen. Then run update-rc.d for any files missing start links. Many network init scripts don't have stop links. –  BillThor Mar 7 '12 at 21:26
    
Get a better VPS provider. While your server is unmanaged, they should at least be able to give you consulting services to fix it up. This is especially important to you, since you don't have the knowledge to manage the machine yourself. –  womble Mar 7 '12 at 21:26

1 Answer 1

You can manually create a symlink to the script in /etc/init.d in each of the /etc/rc#.d directories. That's the messy way to do it. In rpm installs you can use chkconfig, not sure what the equivalent is with ubuntu.

share|improve this answer
    
Thanks for you responce. I'm not very good with kind of stuff, but if do you think you would be able to help me out? I'm not even sure what a symlink is :/ –  Garrett R Mar 7 '12 at 21:09
    
I believe you'd run: "update-rc.d -f ssh defaults", and "update-rc.d -f networking defaults" –  Matthew Mar 7 '12 at 21:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.