Frank Luithle wrote:
Package: apcupsd
Version: 3.10.16-3
Severity: normal


The file '/etc/default/apcupsd' defines, among others, a variable named 'POWERFAIL', which gives the path and name of the marker file to be created after a power fail was detected by apcupsd.

Within '/etc/apcupsd/apccontrol', the default value of this variable
(which is '/var/spool/apcupsd/powerfail') is hardcoded.  So changing the
value of 'POWERFAIL' in '/etc/default/apcupsd' will break proper script
operation of 'apccontrol'.

Suggested fix:  Source '/etc/default/apcupsd' in 'apccontrol' and use
'${POWERFAIL}' where applicable.


hi,
my fault, POWERFAIL has to be hardcoded on apccontrol because it's done like
that during the ./configure process .
/etc/default/apcupsd is debian related so it's better to fix it rather the source code of apcupsd.


Regards
Samuele






-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to