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 created a service script in /etc/init.d (Debian) that is working - I can start/stop/status/restart. But it is not respawning. Is it possible to respawn?

Thanks in advance

share|improve this question

closed as too broad by Scott Pack, mdpc, Tim Brigham, Ward, Christopher Perrin Aug 8 '13 at 13:33

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer

up vote 1 down vote accepted

You can respawn it by editing /etc/inittab file.

share|improve this answer
    
Perhaps you could explain how to do this? Also maybe provide an example? –  slm Aug 7 '13 at 13:32
    
editing /etc/inittab can be done by issuing the command vim /etc/inittab. An example is already present at line 63. –  Eric DANNIELOU Aug 7 '13 at 13:49
    
Thanks I tried and it works perfectly. g1:2345:respawn:/path/to/myscript.sh –  Winston Aug 8 '13 at 2:34
add comment

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