Hylafax Mailing List Archives

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

Re: [hylafax-users] Can not reach server at host "localhost", port 4559



Am 2005.11.18 20:08 schrieb(en) Lee Howard:

Matt Miller wrote:

> # /etc/init.d/hylafax start
> Not starting HylaFAX daemons since they are already running.

This ("already running" detection) is undoubtedly a feature-add by Debian, so I'd recommend reporting this to them.

Here is the code from Debian's /etc/iunit.d/hylafax:


    if [ ${USE_FAXGETTY} = "yes" ]
    then
      count=$(ps --no-headers -Chfaxd,faxq,faxgetty | wc -l)
    else
      count=$(ps --no-headers -Chfaxd,faxq | wc -l)
    fi

if [ $count -eq 0 ];
then
copy_slash_etc
echo -n "Starting HylaFAX daemons:"
#[code to start faxq, hfaxd]
#[code to optionally start faxgetty process[es] or to run faxmodem]
else
echo "Not starting HylaFAX daemons since they are already running." 1>&2
exit 1
fi



The "already running" message should be printed if the ps command found a process hfaxd, faxq or maybe faxgetty.


If I understand it right this may happen when faxgetty is started in /etc/inittab and you have USE_FAXGETTY=yes in /etc/default/hylafax.


The code in /etc/iunit.d/hylafax could be changed to check every process inidividually.



Bodo


____________________ 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*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services