This is my first attempt at installing Hylafax. I have managed to install 6.0.6 from the tarball onto a brand new F17 system.
I am wanting to use this as an automated fax receive and forward system so I haven't looked at the sending side of the system yet.
I'm also new to systemd having being used to old init based systems. So far I have two problems.
1) Through googling I have managed to get faxgetty running and can receive faxes if I first start the system by issuing the command
systemctl start faxgetty-ttyS0.service
However, if I reboot the services doesn't start automatically. The systemd config file I've copied from the net and changed appropriately is:
[root@stan2 ~]# cat /etc/systemd/system/faxgetty-ttyS0.service Unit] Description=FaxGetty Start Modem ttyS0
[Service] Type=simple User=root Group=root Restart=always ExecStart=/usr/local/sbin/faxgetty /dev/ttyS0 RestartSec=30
[Install] WantedBy=multi-user.target
[root@stan2 ~]# ll /etc/systemd/system/default.target lrwxrwxrwx. 1 root root 37 Oct 29 16:07 /etc/systemd/system/default.target -> /lib/systemd/system/multi-user.target [root@stan2 ~]#
Can anyone suggest what I need to do to get it to run on startup please.
2) received TIF image is squashed vertically
The resulting TIF file looks correct except that it is squashed vertically, to about half the height it should be. I have googled this and have found a number of results where it says the problem is down to flow control and give the resulting log entries. However I do not have any errors in the log file.
Oct 30 09:54:05 stan2 FaxGetty[1108]: ANSWER: FAX CONNECTION DEVICE '/dev/ttyS0' Oct 30 09:54:47 stan2 FaxGetty[1108]: RECV FAX (000000004): from 01132792564, page 1 in 0:00:37, INF, 3.85 line/mm, 1-D MH, 14400 bit/s Oct 30 09:54:47 stan2 FaxGetty[1108]: RECV FAX (000000004): recvq/fax000000004.tif from 01132792564, route to <unspecified>, 1 pages in 0:00:42 Oct 30 09:54:47 stan2 FaxGetty[1108]: RECV FAX: bin/faxrcvd "recvq/fax000000004.tif" "ttyS0" "000000004" "" Oct 30 09:55:00 stan2 FaxGetty[1108]: MODEM USR U.S. Robotics 56K FAX EXT Rev. 11.16.63/Configuration Profile...
Any suggestions on how to fix this?
Cheers
Gary
On 10/30/2012 12:06 PM, Gary Stainburn wrote: [snip]
- Through googling I have managed to get faxgetty running and can receive
faxes if I first start the system by issuing the command
systemctl start faxgetty-ttyS0.service
However, if I reboot the services doesn't start automatically. The systemd config file I've copied from the net and changed appropriately is:
[snip]
Can anyone suggest what I need to do to get it to run on startup please.
Have you checked the systemctl manpage? Is it maybe something like this:
# systemctl enable faxgetty-ttyS0.service
Regards, Patrick
On Tuesday 30 October 2012 12:02:51 Patrick Lists wrote:
On 10/30/2012 12:06 PM, Gary Stainburn wrote:
Can anyone suggest what I need to do to get it to run on startup please.
Have you checked the systemctl manpage? Is it maybe something like this:
# systemctl enable faxgetty-ttyS0.service
Regards, Patrick
I had done this Patrick but it didn't work. However, I did eventually trace it down to a typing error in the config file.
BTW. Is the hylafgax-users list still going. I did try there first but after subscribing and posting nothing has come through. Checking the archives doesn't seem to have anything in for this year.
Am 30.10.2012 15:41, schrieb Gary Stainburn:
On Tuesday 30 October 2012 12:02:51 Patrick Lists wrote:
On 10/30/2012 12:06 PM, Gary Stainburn wrote:
Can anyone suggest what I need to do to get it to run on startup please.
Have you checked the systemctl manpage? Is it maybe something like this:
# systemctl enable faxgetty-ttyS0.service
Regards, Patrick
I had done this Patrick but it didn't work. However, I did eventually trace it down to a typing error in the config file.
BTW. Is the hylafgax-users list still going. I did try there first but after subscribing and posting nothing has come through. Checking the archives doesn't seem to have anything in for this year
Hylafax 6 is a dumb fork
http://sourceforge.net/projects/hylafax/files/ they are providing a src.rpm which can be rebuilt with "rpmbuild --rebuild file.src.rpm"
[root@asterisk:~]$ rpm -qa | grep hylafax hylafax-5.5.1-1.fc17.20121016.rh.x86_64
works like a charme with self-created system-units below and self-packaged iaxmodem on F17 since weeks ____________________________________________
[root@asterisk:/etc/systemd/system]$ cat hylafax.service [Unit] Description=Hylafax After=syslog.target network.target
[Service] Type=forking
ExecStartPre=/bin/systemctl start faxq.service ExecStart=/usr/sbin/hfaxd -i hylafax ExecStartPost=/bin/systemctl start iaxmodem.service ExecStartPost=/bin/systemctl start faxgetty.service
ExecStopPost=/bin/systemctl stop iaxmodem.service ExecStopPost=/bin/systemctl stop faxgetty.service ExecStopPost=/bin/systemctl stop faxq.service
Restart=always RestartSec=2 TimeoutSec=2
[Install] WantedBy=multi-user.target ____________________________________________
[root@asterisk:/etc/systemd/system]$ cat faxgetty.service [Unit] Description=HylaFAX faxgetty
[Service] User=root Group=root Restart=always RestartSec=2 TimeoutSec=2 ExecStart=/usr/sbin/faxgetty ttyIAX0
[Install] WantedBy=multi-user.target ____________________________________________
[root@asterisk:/etc/systemd/system]$ cat iaxmodem.service [Unit] Description=iaxmodem After=syslog.target network.target
[Service] Type=forking ExecStart=/usr/bin/iaxmodem Restart=always RestartSec=2 TimeoutSec=2
[Install] WantedBy=multi-user.target ____________________________________________
[root@asterisk:/etc/systemd/system]$ cat faxq.service [Unit] Description=HylaFAX queue manager After=syslog.target network.target Before=hylafax.service
[Service] Type=forking ExecStart=/usr/sbin/faxq Restart=always RestartSec=2 TimeoutSec=2
[Install] WantedBy=multi-user.target
Am 30.10.2012 20:21, schrieb Joe Zeff:
On 10/30/2012 07:47 AM, Reindl Harald wrote:
Hylafax 6 is a dumb fork
I can't say you're wrong, because I don't know anything about the project. Why do you think this fork is dumb?
because it does not really differ and upstream is virtually dead compared with the original project - fork for the sake of a fork
So far so good. I've managed top fix both of my problems but now have another.
I'm trying to route the incoming faces using caller ID and dialed in digits but none of this information is coming through.
I'm using a USR modem if that helps.
On Tue, 2012-10-30 at 11:06 +0000, Gary Stainburn wrote:
This is my first attempt at installing Hylafax. I have managed to install 6.0.6 from the tarball onto a brand new F17 system.
I am wanting to use this as an automated fax receive and forward system so I haven't looked at the sending side of the system yet.
I'm also new to systemd having being used to old init based systems. So far I have two problems.
- Through googling I have managed to get faxgetty running and can receive
faxes if I first start the system by issuing the command
systemctl start faxgetty-ttyS0.service
However, if I reboot the services doesn't start automatically. The systemd config file I've copied from the net and changed appropriately is:
Did you enable it before you started it: systemctl enable faxgetty-ttyS0.service