Quote:
Originally Posted by george_toolan
Check your permissions
Code:
ls -l /usr/local/sbin/faxgetty /dev/ttyR0
If faxgetty isn't allowed to access the modem then it cannot be initialized ;-)
|
Already though of that and I can produce conditions where faxgetty will "throw an error":
May 4 05:14:45 redhat systemd[1]: faxgetty-ttyR0.service holdoff time over, scheduling restart.
May 4 05:14:45 redhat systemd[1]: Unit faxgetty-ttyR0.service entered failed state.
May 4 05:14:45 redhat systemd[1]: faxgetty-ttyR0.service: main process exited, code=exited, status=255
OR:
May 4 05:35:47 redhat systemd[1]: faxgetty-ttyR0.service holdoff time over, scheduling restart.
May 4 05:35:47 redhat systemd[1]: Unit faxgetty-ttyR0.service entered failed state.
May 4 05:35:47 redhat FaxGetty[5054]: The fax server must run with real uid root.
May 4 05:35:47 redhat systemd[1]: faxgetty-ttyR0.service: main process exited, code=exited, status=255
(entered failed state - I know that. Tell me WHY. If I wanted 'there is a failure' message with no WHY I'll use Microsoft software thankyouverymuch)
Here is an example of the non-permissions mucked up communications. (sitting in a log file that should not have been in messages...*sigh*)
May 3 18:39:36 redhat FaxGetty[22352]: OPEN /dev/ttyR0 HylaFAX (tm) Version 6.
0.5
May 3 18:39:37 redhat FaxGetty[22352]: MODEM set DTR OFF
May 3 18:39:37 redhat FaxGetty[22352]: DELAY 75 ms
May 3 18:39:37 redhat FaxGetty[22352]: MODEM set DTR ON
May 3 18:39:37 redhat FaxGetty[22352]: DELAY 2600 ms
May 3 18:39:40 redhat FaxGetty[22352]: MODEM set baud rate: 19200 baud, input f
low RTS/CTS, output flow RTS/CTS
May 3 18:39:40 redhat FaxGetty[22352]: DELAY 10 ms
May 3 18:39:40 redhat FaxGetty[22352]: MODEM flush i/o
May 3 18:39:40 redhat FaxGetty[22352]: <-- [4:ATZ\r]
May 3 18:40:10 redhat FaxGetty[22352]: MODEM TIMEOUT: reading line from modem
May 3 18:40:10 redhat FaxGetty[22352]: MODEM <Timeout>
May 3 18:40:10 redhat FaxGetty[22352]: MODEM set DTR OFF
May 3 18:40:10 redhat FaxGetty[22352]: DELAY 75 ms
May 3 18:40:10 redhat FaxGetty[22352]: MODEM set DTR ON
May 3 18:40:10 redhat FaxGetty[22352]: DELAY 2600 ms
May 3 18:40:14 redhat FaxGetty[22352]: MODEM set baud rate: 19200 baud, input f
low RTS/CTS, output flow RTS/CTS
May 3 18:40:14 redhat FaxGetty[22352]: DELAY 10 ms
May 3 18:40:14 redhat FaxGetty[22352]: MODEM flush i/o
May 3 18:40:14 redhat FaxGetty[22352]: <-- [4:ATZ\r]
May 3 18:40:44 redhat FaxGetty[22352]: MODEM TIMEOUT: reading line from modem
May 3 18:40:44 redhat FaxGetty[22352]: MODEM <Timeout>
May 3 18:40:44 redhat FaxGetty[22352]: MODEM set DTR OFF
May 3 18:40:44 redhat FaxGetty[22352]: /dev/ttyR0: Can not initialize modem.
May 3 18:40:44 redhat FaxGetty[22352]: STATE CHANGE: BASE -> MODEMWAIT (timeout
30)
Over on a working machine this is the permissions BTW:
[root@redhat etc]# ls -l /usr/sbin/faxgetty /dev/ttyR0
crw------- 1 uucp uucp 46, 0 May 4 04:51 /dev/ttyR0
-rwxr-xr-x 1 root root 63964 Apr 19 2007 /usr/sbin/faxgetty