Fedora Linux Support Community & Resources Center
Old 14th November 2009, 09:58 PM
fw12 Offline
Registered User
Join Date: Jun 2006
Posts: 23
inittab changes

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.

# 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


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

exec /sbin/faxgetty ttyS0

Hopefully this helps the next person who encounters the same problem as I did.

Last edited by fw12; 15th November 2009 at 05:45 AM.
Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't edit etc/inittab as nano/etc/inittab not working..... Leond Installation, Upgrades and Live Media 6 28th August 2007 07:57 PM
UPS and /etc/inittab tebbens Hardware & Laptops 0 26th May 2006 03:28 PM
No inittab deepc Fedora Core 4 Test 4 19th April 2005 04:39 PM

Current GMT-time: 08:20 (Wednesday, 23-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat