Koozali.org: home of the SME Server

faxgetty respawn

John Crisp

faxgetty respawn
« on: June 12, 2002, 01:24:57 PM »
Hi,

I am trying to get faxgetty to run from inittab. I have the following line in inittab :

t2:respawn:/usr/sbin/faxgetty -D /dev/ttyS3  where ttyS3 is the modem

If I run '/usr/sbin/faxgetty -D /dev/ttyS3' from a command prompt then it works fine but if I run it from inittab I get 'respawning too fast' errors.

The messages log shows 'can not lock modem device'

I have read through various posts here and at the Hylafax site, and have tried everything I can.

I have tried to do a teleinit q and init q after booting, but it still does it.

Any ideas ?

Can it be run from rc.local ?

B. Rgds
John

Duncan

Re: faxgetty respawn
« Reply #1 on: June 12, 2002, 01:41:38 PM »
You might need to add some runlevels in the line ie: 23457

mo:23457:respawn:/usr/sbin/faxgetty ttyS1
(cut from inittab)

Regards Duncan

John Crisp

Re: faxgetty respawn
« Reply #2 on: June 12, 2002, 11:25:13 PM »
Thanks for that.

First thing I saw was that I had -D in there which is OK from the command line but not good in inittab.

I added the runlevels and we are as good as new.

Thanks for the pointers.

B. rgds
John

John Crisp

Re: faxgetty respawn
« Reply #3 on: June 13, 2002, 12:04:01 AM »
Oooh - aaah - maybe not quite. I had to remove /dev as well so that I didn't get the
'device locked' in the messages log

I currently have the following which seems quite happy but won't answer

t2:23457:respawn:/usr/sbin/faxgetty ttyS3

/dev/modem is linked to /dev/ttyS3

The following bits are from messages :


[root@faxsmith inittab]# ps -e |grep fax
 1198 ?        00:00:00 faxq
 1203 ?        00:00:00 hfaxd
 1254 ?        00:00:00 faxgetty

When a call is made I get the following logged :


Jun 12 19:33:47 faxsmith FaxGetty[1254]: MODEM V2.061.2-V34_ACF_DP1 33600/
Jun 12 19:36:01 faxsmith FaxGetty[1254]: MODEM V2.061.2-V34_ACF_DP1 33600/
Jun 12 19:40:33 faxsmith FaxGetty[1254]: MODEM V2.061.2-V34_ACF_DP1 33600/

But no answer.

Depressingly if I make a little script and run it from rc.local with the original line :

/usr/sbin/faxgetty -D /dev/modem

It works fine and answers immediately..........

AAARRRGGGHHHH !!!!!!!!!!!!

Any help appreciated

B. Rgds
John

Duncan

Re: faxgetty respawn
« Reply #4 on: June 13, 2002, 05:08:46 AM »
I know from past discussions (somewhere) that it isnt a good idea to link /dev/modem. Cant remember why though.

Regards Duncan