what to restart after mgetty.config changes?

Don Russell fedora at drussell.dnsalias.com
Sat Aug 11 05:46:09 UTC 2007


Don Russell wrote:
> Mikkel L. Ellertson wrote:
>> Don Russell wrote:
>>  
>>> I'm playing around with mgetty and making changes to the
>>> /etc/mgetty+sendfax/mgetty.config file
>>>
>>> I find the only way to have the changes take effect is to "shutdown -r"
>>> the whole system.
>>>
>>> I thought an "init q" might do it.... but nope.... I can find plenty of
>>> information about mgetty.config via Google etc, but nothing on how to
>>> make the changes effective. :-(
>>>
>>> Is there a service I can restart so I don't have to reboot the whole
>>> system (which takes way too long: (due to clamAV stuff) -) )
>>>
>>> Thanks
>>>
>>>
>>>     
>> Probably the easiest way would be to run "killall mgetty". The
>> problem is that you have not changed /etc/inittab, so init does not
>> restart mgetty, and mgetty does not know that its config file has
>> been changed. (You will have to double check the exact program name
>> mgetty is running under...)
>>
>> Mikkel
>>   
>
> Thanks.... that sure beats rebooting the whole machine. :-)
> Then how will it get restarted again? I'm assuming that's what inittab 
> takes care of.... from the next call on the ttyS1 device
> (That's sort of rhetorical... I'll just try it and see :-) )

Well, I'll answer my own question here... in case somebody looks in the 
archives in the future....

"killall mgetty" does it...it kills the currect instance and a new 
instance is created, and the new mgetty.config file is read... perfect! :-)





More information about the fedora-list mailing list