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.

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?

thanks,

share|improve this question

2 Answers 2

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

 
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.