Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Redhat 6.4 and created a new init script which updates a project using SVN.

I then configured the script in chkconfig. The problem is everytime i restart the server i lose ssh connectivity for some reason (connection refused after the restart), and i have to restore the HD from snapshot.

The server is located on EC2 with a key file, maybe it's got something to do with permissions?


share|improve this question
up vote 3 down vote accepted

You may want to look at the console output upon reboot.

It's likely that sshd is just not starting.

Also, sounds like your init script could be broken.

If your script is hanging and it is being started before ssh, you won't have access to the machine. You may consider making sure your custom init script boots last.

share|improve this answer

init scripts are used for starting/stopping system services and updating a project using SVN doesn't sound like a system service. I would suggest other approaches: 1. if you need to make the update only at boot time, launch your script from /etc/rc.d/rc.local 2. if you need to make the update periodically, then set the script to be run from cron

share|improve this answer

Your Answer


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.