Koozali.org: home of the SME Server

Hylafax e-smith configuration

Steven Curren

Hylafax e-smith configuration
« on: September 30, 2001, 08:29:54 AM »
Folks,
After some effort I have been able to add the Hylafax configuration to the e-smith template system so that hylafax starts at boot time. Here is how I did it. I would welcome scrutiny and comments.


Start faxgetty at boot time.

Add line to /etc/inittab:
mo:23457:respawn:/usr/sbin/faxgetty ttyS0

Copy the inittab template for modification
cp -R /etc/e-smith/templates/etc/inittab /etc/e-smith/templates-custom/etc

Delete all files copied to the new directory
rm *

Create the template fragment
touch faxgetty

Add to faxgetty
pico faxgetty

#-------------------------------------------------
# start faxgetty on ttyS0 (comm 1)
#-------------------------------------------------

mo:23457:respawn:/usr/sbin/faxgetty ttyS0

#-------------------------------------------------
# end faxgetty ammendment
#-------------------------------------------------

expand the template
/sbin/e-smith/expand-template /etc/inittab

Start the Hylafax services at boot time
Add the following lines to /etc/services:
hylafax      4559/tcp
snpp      444/tcp

Copy the inittab template for modification
cp -R /etc/e-smith/templates/etc/services /etc/e-smith/templates-custom/etc

Delete all files copied to the new directory
rm *

Create the template fragment
touch hylafax

Add to hylafax
pico hylafax

#-------------------------------------------------
# configure hylafax services
#-------------------------------------------------

hylafax      4559/tcp
snpp      444/tcp

#-------------------------------------------------
# end hylafax ammendment
#-------------------------------------------------

expand the template
/sbin/e-smith/expand-template /etc/services

start hylafax on startup
copy the start link to rc.7 directory
cp /etc/rc.d/rc3.d/S95hylafax /etc/rc.d/rc7.d

Steven Curren

Re: Hylafax e-smith configuration
« Reply #1 on: September 30, 2001, 09:21:13 AM »
One problem I am having is that there seems to be two hylafax processes running as follows:

ps ax | grep fax
 1070 ?        S      0:00 faxq
 1080 ?        S      0:00 hfaxd -i hylafax
 1105 ?        S      0:00 /usr/sbin/faxgetty ttyS0
 1133 ?        S      0:00 hfaxd -i hylafax
 
If i kill one it comes back, and if I try to start the hylax process with "/etc/init.d/hylafax stop" and then "/etc/init.d/hylafax start" it dies. any ideas would be appreciated.

Filippo Carletti

Re: Hylafax e-smith configuration
« Reply #2 on: October 01, 2001, 12:19:13 PM »
Service startup should be done adding a link rc7.d to /etc/rc.d/init.d/e-smith-service as all e-smith services adding a suitable line in configuration db:
hylafax=service|InitscriptOrder|95|status|enabled

It can be done with this command:
/sbin/e-smith/db configuration set hylafax service InitscriptOrder 95 status enabled

Steve Curren

Re: Hylafax e-smith configuration
« Reply #3 on: October 02, 2001, 08:33:29 AM »
Sorry I'm not sure I understand:

Does this mean I should removed the link I copied into the rc7.d directory ie rm /etc/rc.d/rc7.d. and then issue the command /sbin/e-smith/db configuration set hylafax service InitscriptOrder 95 status enabled?

and do I add a link link file to the rc7.d directory and copy to the /etc/rc.d/init.d/e-smith-service directory? or is this allready there?

Thx for your advice