1

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

Winston
  • 113
  • 4

1 Answers1

1

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

slm
  • 7,355
  • 16
  • 54
  • 72
  • Perhaps you could explain how to do this? Also maybe provide an example? – slm Aug 07 '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. –  Aug 07 '13 at 13:49
  • Thanks I tried and it works perfectly. g1:2345:respawn:/path/to/myscript.sh – Winston Aug 08 '13 at 02:34