I added the following to /etc/inittab
S0:2345:respawn:/usr/sbin/faxgetty ttyS0
S1:2345:respawn:/usr/sbin/faxgetty ttyS1
Unfortunately, they do not run after reboot.
I found the reason why in the /etc/inittab file, which states...
# inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
# Terminal gettys (tty[1-6]) are handled by /etc/event.d/tty[1-6] and
# /etc/event.d/serial
Can somebody tell me how to run faxgetty at startup without resorting to cron?
I know I could do something like this in crontab:
@reboot /usr/sbin/faxgetty ttyS0
but that won't respawn if faxgetty dies anytime
Thx.
Edit: Here is the answer to my own question...
In older versions of Fedora, you would add new lines to /etc/inittab in the format:
S0:2345:respawn:/usr/sbin/faxgetty ttyS0
That has changed. Now you configure things in /etc/event.d. Each device needs to be configure in its own separate file
So for ttyS0, you would have this file /etc/event.d/ttyS0
The content would be:
start on stopped rc2
start on stopped rc3
start on stopped rc4
stop on runlevel 0
stop on runlevel 1
stop on runlevel 6
respawn
exec /sbin/faxgetty ttyS0
Hopefully this helps the next person who encounters the same problem as I did.