HylaFAX The world's
most advanced open source fax server
|
|
Finally this problem happened this time outside of critical hours when
I normally just have to reboot it as quickly as possible... marthter wrote: Before stopping or disabling faxgetty, I thought I'd check what was running:Lee Howard wrote: [root@socrates log]# ps -elf |grep fax 5 S uucp 1357 1 0 75 0 - 1683 schedu Jun08 ? 00:01:11 [faxq] 1 S uucp 1359 1 0 75 0 - 893 schedu Jun08 ? 00:00:16 [hfaxd] 4 S uucp 20812 1 0 75 0 - 1090 schedu 11:36 ? 00:00:00 [faxgetty] 4 S uucp 20813 1 0 75 0 - 1065 schedu 11:36 ? 00:00:00 [faxgetty] 4 S uucp 20814 1 0 75 0 - 1065 schedu 11:36 ? 00:00:00 [faxgetty] 1 Z uucp 20922 20812 0 81 0 - 0 t> 12:39 ? 00:00:00 [faxgetty <defunct>] 1 Z uucp 20923 20812 0 81 0 - 0 t> 12:39 ? 00:00:00 [faxgetty <defunct>] 4 Z uucp 20924 20812 0 79 0 - 0 > 12:39 ? 00:00:00 [faxrcvd <defunct>] 0 S root 22556 22453 0 81 0 - 920 pipe_w 22:52 pts/0 00:00:00 grep fax [root@socrates log]# faxstat -s HylaFAX scheduler on socrates.builderlynx.com: Running Modem ttyS4 (+1-xxx-yyy-5204): Running and idle Modem ttyS5 (+1-xxx-yyy-0055): Running and idle Modem ttyS0 (+1-xxx-yyy-4233): Receiving from "xxxyyy9491" [root@socrates log]# ll /var/lock total 8 -r--r--r-- 1 uucp uucp 11 Jun 20 12:38 LCK..ttyS0 drwxr-xr-x 2 root root 4096 Jun 8 18:44 subsys [root@socrates log]# cat /var/lock/LCK..ttyS0 20812 I commented the faxgetty lines in inittab and did "init q" and checked that they were stopped:disable faxgetty [root@socrates log]# ps -elf |grep fax 5 S uucp 1357 1 0 75 0 - 1683 schedu Jun08 ? 00:01:11 [faxq] 1 S uucp 1359 1 0 75 0 - 893 schedu Jun08 ? 00:00:16 [hfaxd] 0 S root 22585 22453 0 81 0 - 919 pipe_w 22:56 pts/0 00:00:00 grep fax Stopping those faxgettys apparently doesn't clear the lock file, I'm not sure if that's important: [root@socrates log]# cat /var/lock/LCK..ttyS0 20812 Though eventually this lock file disappeared on its own. Running minicom (checking that it is indeed using ttyS0) [root@socrates log]# cat /etc/minirc.dfl # Machine-generated file - use "minicom -s" to change parameters. pr port /dev/ttyS0 pu baudrate 57600 Then running minicom, nothing responded to ATZ, AT&F, or AT. And in fact, when quitting minicom, it says Resetting Modem, then the terminal window goes blank and won't give back the command prompt back until minicom is killed.
[root@socrates root]# ps -elf |grep fax 5 S uucp 1357 1 0 75 0 - 1683 schedu Jun08 ? 00:01:11 [faxq] 1 S uucp 1359 1 0 75 0 - 893 schedu Jun08 ? 00:00:16 [hfaxd] 0 S root 22776 22644 0 81 0 - 920 pipe_w 23:23 pts/1 00:00:00 grep fax At this point I did /etc/init.d/hylafax stop [root@socrates root]# setserial /dev/ttyS5 /dev/ttyS5, UART: 16550A, Port: 0xe000, IRQ: 11 [root@socrates root]# setserial /dev/ttyS4 /dev/ttyS4, UART: 16550A, Port: 0xe800, IRQ: 10 [root@socrates root]# setserial /dev/ttyS0 /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4 The above shows that it is using IRQ 4, so I'm not sure how that reflects on the IRQ 3 comments from way back. At this point I re-enabled the faxgettys in inittab, and did /etc/init.d/hylafax start. That still had ttyS0 stuck at "Initializing server" as always when this happened, so I did a warm boot (shutdown -r now) and that's still the only thing (plus cold boot of course) that I know that gets things going again. I guess its good at least I can do that remotely. Anyway I'm about this close to taking out and stomping on the modem but I just thought I'd make one more stab at it (the minicom suggestion from way back, to try to wake it up) and see if anyone has any suggestions, or at least to note the above observations for archival purposes. Cheers and thanks for suggestions made up to now. Regards. Martin [large log from May 24, 2007 e-mail purged from thread] |