How forcing a new config-file read
Gert Doering (gert@greenie.muc.de)
Thu, 16 Jul 1998 23:31:25 +0200
Hi,
John Romkey wrote:
> >every day i change 'ansage.rmd' and 'voice.conf' via cron. The reason for
> >doing this, is using different messages and rings. But how can i force a
> >new reading of 'voice.conf' to activate the other settings?
>
> You could just kill off the running vgetty process with SIGUSR2, for instance:
>
> kill -SIGUSR2 `cat /var/run/mg-pid.ttyXX`
As a shortcut for that:
# kvg -USR2 ttyXX
> /var/run might be /etc or some other directory depending on how you built
> mgetty
kvg "should know".
> According to the mgetty code, it will exit if it's just waiting for a call,
> and will finish its current processing otherwise (and automatically restart
> afterwards, like usual)
Correct.
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-35655025 gert.doering@physik.tu-muenchen.de