Hi, I am using mon utility on SuSE 9.3.
I would like you to ask if you know some way to make mon process "unkillable". I start mon by /etc/init.d/mon start. My goal is to make mon respawnable. I tried to add the following entry to /etc/initab: Amon:5:respawn:/usr/sbin/mon -c /etc/mon/mon.cf </dev/null >/dev/console 2>&1 but then "init" complained about: ipgw0202 mon[28583]: fatal, could not bind TCP server port 2583: Address already in use This was probably caused by the fact that "init" does not properly discover if mon process is running or not. /etc/init.d/mon start in fact does the following: startproc -s /usr/sbin/mon -c /etc/mon/mon.cf And this means that mon is to be running in a separate session (with a new pid) and "init" will not handle this properly. I tried also to add the following entry to inittab: Amon:5:respawn:/sbin/startproc -s /usr/sbin/mon -c /etc/mon/mon.cf </dev/null > /dev/console 2>&1 Then I started mon as above and killed it. Mon did not respawned instantly but after 5 minutes! It is really strange system's behaviour or I didn't understood some mechanism... At the end I logged into console and got the following message: INIT: Id "Amon" respawning too fast: disabled for 5 minutes (so it means that task from inittab is trying 10 times to run and gives up for a 5 minutes.) I would like to say about the following example: if you want to put sshd under inittab you must use sshd with the special option -D (or -i for inetd). Is there any way to put mon under init process? Thanks, Zbyszek _______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon