Problema con inittab respawn

Ciao a tutti, sto incontrando qualche problema con la configurazione del file inittab . Ho la necessità di riavviare uno script - che a sua volta avvia un tunnel ssh - nel caso in cui il tunnel ssh si chiuda per qualunque motivo.

Ho modificato il file inittab in questo modo, poi l’ho ricaricato con il comando init q ma, una volta avviato il tunnel ssh e poi killato di proposito,il respawn non viene effettuato.

Qualcuno sa aiutarmi ? Grazie.

id:5:initdefault: 1:2345:respawn:/root/tunnel.sh

versione fedora ?

13

metterei il respawn in:
/etc/init/tty.conf
invece che in inittab

[quote=virus]
metterei il respawn in:
/etc/init/tty.conf
invece che in inittab[/quote]

che sintassi devo usare ?

userei la stessa che hai proposto in inittab.

non funziona mica, ho anche riavviato ma tra i processi nessun tunnel ssh…

nella tredici:

[quote]
Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.

Feature highlights:

Tasks and Services are started and stopped by events;
Events are generated as tasks and services are started and stopped;
Events may be received from any other process on the system;

** Services may be respawned if they die unexpectedly;**
Supervision and respawning of daemons which separate from their parent process;
Communication with the init daemon over D-Bus. [/quote]
il respawn va messo in: /etc/event.d creata appositamente.
verifica la cosa, purtroppo non ho una tredici sottomano.