HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Hylafax heartbeat iaxmodem



Well --

I have a moderately similar configuration, and in that case am not using the upstream init scripts at all; I use runit to manage the services (faxq, hfaxd, the faxgetties and the iaxmodem instances), with newer versions' support for emulating LSB init scripts to interface with heartbeat.

runit can be found at http://smarden.org/runit/; the run scripts I use are available below. (Obviously, the faxgetty-* and iaxmodem-* bits are duplicated for each device).


--- BEGIN hylafax-faxq/run #!/bin/sh

killall /usr/sbin/faxq 2>/dev/null && echo 'Killed still-running faxq process(es)'

exec 2>&1
exec /usr/sbin/faxq -D
--- END hylafax-faxq/run


--- BEGIN hylafax-hfaxd/run #!/bin/sh

killall /usr/lib/hylafax/hfaxd 2>/dev/null && echo 'Killed still-running hfaxd process(es)'
killall /usr/sbin/hfaxd 2>/dev/null && echo 'Killed still-running hfaxd process(es)'


exec 2>&1
exec /usr/sbin/hfaxd -d -i hylafax -o 4557 -s 444
--- END hylafax-hfaxd/run


--- BEGIN faxgetty-ttyIAX0/run #!/bin/sh

exec 2>&1

DEVNAME=$(pwd | sed -re 's/.*-//')

exec /usr/sbin/faxgetty $DEVNAME
--- END faxgetty-ttyIAX0/run


--- BEGIN iaxmodem-ttyIAX0/run #!/bin/sh

exec 2>&1

DEVNAME=$(pwd | sed -re 's/.*-//')

exec /usr/bin/iaxmodem $DEVNAME
--- END iaxmodem-ttyIAX0/run


____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions