How forcing a new config-file read
John Romkey (romkey@apocalypse.org)
Thu, 16 Jul 1998 22:55:06 +0200
At 11:47 AM 7/14/98 +0200, Henning Paschke wrote:
>Hello,
>
>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`
/var/run might be /etc or some other directory depending on how you built
mgetty
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)
- john romkey romkey@apocalypse.org
http://www.apocalypse.org/pub/u/romkey/