I added an antry in
/etc/inittab to respawn a binary. The entry is like:
I then execute
init q and the process is started by
inittab. If I kill the process, it's respawned.
The strange behaviour happens when I do the following:
- manually run
- add the entry above in
Result: the process is respawned even though it was already running.
Moreover, if the binary was set to be run on startup with
init.d, at runlevel 2, the
inittab respawns it immediately at boot.