how to send the SIGUSR1 signal to the mgetty process?

Gert Doering (gert@greenie.muc.de)
Tue, 29 Dec 1998 10:41:00 +0100


Hi,

On Mon, Dec 28, 1998 at 11:27:18PM -0600, Robert J. Brown wrote:
>     Stefan> miernik@blue.cft.edu.pl (Miernik) writes:
>     >> In FAQ.gz you write: Send the SIGUSR1 signal to the mgetty
>     >> process.  How to do that?
> 
>     Stefan> kill -SIGUSR1 `/sbin/pidof mgetty`
> 
> This is unsafe if there is more than one instance of mgetty running.
> Better to do a:
> 
>     ps -ax | grep mgetty
> 
> and look for the desired line.

kill -SIGUSR1 `cat /var/run/mg-pid.ttyS0`

(depending where you're putting the PID files to, and how they are
named).

gert
-- 
Gert Doering
Mobile communications ... right now writing from *AWAY* :-)) 
... mobile phone: +49 177 2160221 ... or mail me:  gert@greenie.muc.de