« Return to Thread: new hal policy file

Re: new hal policy file

by Adam Kropelin :: Rate this Message:

Reply to Author | View in Thread

On Feb 6, 2008 2:53 PM, Andrew Telford <blaahmail@...> wrote:

> I have an APC usb UPS and the process 'hald-addon-hid-ups' was slowly growing and using up all my RAM (Gentoo stable x86).
>
> I noted that the latest release 3.14.3 installs a new hal policy file so upgraded to in the hope that it would fix things. The policy file syntax was not accepted by hal. I got an error:
>
> hald[12708]: error in fdi file /etc/hal/fdi/policy/80-apcupsd-ups-policy.fdi:5: Bad rule: unknown type_match
>
> I had a quick scan of the hal documents, and it appears that the first "match" tag has incorrect syntax.  Here is my patch
>
> 5c5
> <     <match key="info.addons" type="strlist">hald-addon-hid-ups</match>
> ---
> >     <match key="info.addons" contains="hald-addon-hid-ups">
>
> Does this make sense? In any case, the process 'hald-addon-hid-ups'  does not start anymore, so apcupsd has sole access to the UPS which is what I think was supposed to happen,

What version of hald are you running? Maybe they changed the syntax
for this. The original syntax is correct and tested on RHEL5.

--Adam

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Apcupsd-users mailing list
Apcupsd-users@...
https://lists.sourceforge.net/lists/listinfo/apcupsd-users

 « Return to Thread: new hal policy file