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

1 Answer 1


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

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

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