Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Steven Curren 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
-
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.
-
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
-
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