SCIENTIFIC-LINUX-USERS Archives

August 2012

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Todd And Margo Chester <[log in to unmask]>
Reply To:
Todd And Margo Chester <[log in to unmask]>
Date:
Sat, 18 Aug 2012 23:56:10 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (67 lines)
>> Regards
>> Bill Maidment
>> Maidment Enterprises Pty Ltd
>>
>>     -----Original message-----
>>     *From:* Todd And Margo Chester <[log in to unmask]>
>>     *Sent:* Sunday 19th August 2012 12:25
>>     *To:* Scientific Linux Users <[log in to unmask]>
>>     *Subject:* inittab question
>>
>>     Hi All,
>>
>>     Why does this work:
>>
>>            #/usr/sbin/faxgetty -D ttyS1
>>
>>     but, placing this in my /etc/inittab does not?
>>
>>            m0:2345:respawn:/usr/sbin/faxgetty ttyS1
>>
>>     I have run "init q" several times to no avail.
>>     Can anyone see a typo I am missing?
>>
>>     # ps ax | grep -i faxget | grep -v grep
>>     <nothing>
>>
>>     After invoking from the command line, I get
>>     # ps ax | grep -i faxget | grep -v grep
>>        9827 ?        Ss     0:00 /usr/sbin/faxgetty -D ttyS1
>>
>>     What am I missing?
>>
>>     Many thanks,
>>     -T
>>
>
> On 08/18/2012 10:33 PM, Bill Maidment wrote:> You need to put it in /etc/init/ nowadays. Read the notes at the top of
>> /etc/inittab
>>
>>
>>
>
>
> Thank you.  I missed that.  Now to figure out how to use /etc/init.
>
> -T

Figured it out.

Scientific Linux/RHEL 6.x

Create a file

     touch /etc/init/faxgetty.conf

For ttyS1, fill it with

start on runlevel [2345]
stop on runlevel [S016]
respawn
exec /usr/sbin/faxgetty ttyS1



Then do:
      initctl start faxgetty

ATOM RSS1 RSS2