On 1/6/06, Hylton Conacher (ZR1HPC)
Problem now is, how do you get the the modem started when the box or Hylafax start?
When I reboot the box, I have to log in and run the faxmodem command again.
As a workaround, I added the faxmodem command to the hylafax init script, but what is the correct way of doing it?
Correct or not, if it works, who cares? I have however identified, what I think is an 'oops'.
Currently when Hylafax starts it is going to send all the queued faxes. What if I want to send a fax after that send, do I have to wait until Hylafax is restarted? My feeling would be to write a script that does the fax modem thing and have that script run periodically and before the box is shutdown via cron. That way if I send a fax at 10:25am and the Hylafax software was started at 8am, I know that the fax is actually going to leave the building at 11am.
I don't understand the problem. When you start the hylafax service (/etc/init.d/hylafax start), then Hylafax will send any faxes in the queue and then send any faxes that you submit as you submit it. THe hylafax init script that comes with SuSE starts the hylafax server (which listens for clients submitting faxes), as well as the fax queue. So, you just enable the hylafax service to start at boot time: chkconfig -a hylafax Now hylafax will start when the box starts and it will listen for clients submitting faxes. (this is how UNIX and Linux start services after boot time and should be what the SUSE docs refer to also) THe problem is that before the queue will send any faxes, you need to tell it which modem to use, with the 'faxmodem' command. Once you have issued the faxmodem command, the system will send faxes for as long as the service is running. I just modified the init script (/etc/init.d/hylafax) and added the faxmodem command. I also built in a 10 second sleep, so that the faxmodem command will only run 10 seconds after the hylafax server and queue server has started, to give them time to settle, else the faxmodem command does not work. -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.za.org ~ A dinosaur is a salamander designed to Mil Spec ~