Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
* proposed mheardd and mheard patches
       [not found]       ` <620c90570507030818156ff53a@mail.gmail.com>
@ 2005-07-03 20:27         ` Bernard Pidoux
  2005-07-03 21:00           ` Chuck Hast
  0 siblings, 1 reply; 2+ messages in thread
From: Bernard Pidoux @ 2005-07-03 20:27 UTC (permalink / raw)
  To: Chuck Hast; +Cc: List for LINUX ROSE/FPAC network switch, linux-hams

Chuck,

As you noticed, a number of ROSE / FPAC stations have difficulties with 
the mheard function and cannot display AX25 traffic statistics.

This is because mheard does not find mheard.dat database file.

This can occure if :

- the directory, where mheard.dat file should be, does not exist.
   (It is usually in  /var/ax25/mheard/ )
- or mheard.dat is written into another directory.

In the first case, presently, mheardd does not complain if 
/var/ax25/mheard/ directory has not been created before it is started.
This is probably a default in the make install procedure of ax25-tools 
and could be corrected.

However, I thought it would be more user friendly if both programs where 
more verbous when finding errors.

Thus, I made two small patches.

With the first one, mheardd will display the directory and file when the 
daemon fails to write mheard.dat file. If so it will exit.
User will know the directory to mkdir before starting mheardd again.

Modified mheard client, will also display the directory and file names 
if it does not find it.

The user will thus be able to understand the situation and solve it.

Proposed patch is here :
http://f6bvp.free.fr/logiciels/fpac/mheardd.diff

73 de Bernard, f6bvp

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: proposed mheardd and mheard patches
  2005-07-03 20:27         ` proposed mheardd and mheard patches Bernard Pidoux
@ 2005-07-03 21:00           ` Chuck Hast
  0 siblings, 0 replies; 2+ messages in thread
From: Chuck Hast @ 2005-07-03 21:00 UTC (permalink / raw)
  To: Bernard Pidoux; +Cc: List for LINUX ROSE/FPAC network switch, linux-hams

On 7/3/05, Bernard Pidoux <pidoux@ccr.jussieu.fr> wrote:
> Chuck,
> 
> As you noticed, a number of ROSE / FPAC stations have difficulties with
> the mheard function and cannot display AX25 traffic statistics.
> 
> This is because mheard does not find mheard.dat database file.
> 
> This can occure if :
> 
> - the directory, where mheard.dat file should be, does not exist.
>    (It is usually in  /var/ax25/mheard/ )
> - or mheard.dat is written into another directory.
Exactly it is in another directory, seems that there is not continuity
with some of this stuff.

Well I know why mine is not working when I updated the ax25-apps
it appears the latest update now puts the mheard.dat file in the
following location
/var/lib/ax25/mheard/mheard.dat
So I went in and created a symlink in the /var/ax25/mheard directory
pointing at the /var/lib/ax25/mheard/mheard.dat
NOW I have mheard working. I thought I looked at that the other day
but looks like I did not, that was another one of those late night/early
morning things... You know about that...


> 
> In the first case, presently, mheardd does not complain if
> /var/ax25/mheard/ directory has not been created before it is started.
> This is probably a default in the make install procedure of ax25-tools
> and could be corrected.
> 

The first thing I do after the ax25  stuff is up and running and I can see
what is going on the listen screen is do a mheard. That will tell me right
then and there if it is writing to somewhere the client can see.

> However, I thought it would be more user friendly if both programs where
> more verbous when finding errors.

I agree, indeed I would also like to see fpac complain more loudly if it
does not find things where they should be, but one step at a time.

> 
> Thus, I made two small patches.
> 
> With the first one, mheardd will display the directory and file when the
> daemon fails to write mheard.dat file. If so it will exit.
> User will know the directory to mkdir before starting mheardd again.
> 

This is very good, because I know that FPAC is looking for the mheard
data in the /var/ax25/mheard/mheard.dat so worse case can create a
symlink and get it on line correctly.

> Modified mheard client, will also display the directory and file names
> if it does not find it.

Again very good, because what happened this last time around was that
it moved the target location.

> 
> The user will thus be able to understand the situation and solve it.
> 
> Proposed patch is here :
> http://f6bvp.free.fr/logiciels/fpac/mheardd.diff

Yes, I will try to apply it if possible tonight, if not I wil do so during the
week.


-- 
Chuck Hast 
To paraphrase my flight instructor;
"the only dumb question is the one you DID NOT ask resulting in my going
out and having to identify your bits and pieces in the midst of torn
and twisted metal."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-03 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <620c9057050702182953bb166e@mail.gmail.com>
     [not found] ` <005301c57fa4$0b35da90$0700010a@jeanpaul>
     [not found]   ` <620c90570507030511123614d2@mail.gmail.com>
     [not found]     ` <6.2.1.2.2.20050703091801.01eb8778@mail.bellsouth.net>
     [not found]       ` <620c90570507030818156ff53a@mail.gmail.com>
2005-07-03 20:27         ` proposed mheardd and mheard patches Bernard Pidoux
2005-07-03 21:00           ` Chuck Hast

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox