[nut-Bugs][304601] /usr/local/ups/ should be in PATH

nut-bugs at alioth.debian.org nut-bugs at alioth.debian.org
Mon Sep 24 19:30:00 UTC 2007


Bugs item #304601, was opened at 2007-07-16 17:00
Status: Open
Priority: 3
Submitted By: alain williams (addw-guest)
Assigned to: Nobody (None)
Summary: /usr/local/ups/ should be in PATH 
Category: None
Group: None
Resolution: None


Initial Comment:
The default installation is /usr/local/ups/ the PATH setting in the system startup scripts (I have only looked at the RedHat/CentOS ones) does not include anything under there.

Since first raising this issue I found that /etc/rc.d/init.d/functions resets the PATH anyway and so the PATH at the head of the startup scripts would be overwritten anyway (RedHat Enterprise 4.5).

A much better solution would be to set the PATH in /etc/sysconfig/ups, something like:
PATH=$PATH:/usr/local/ups/sbin:/usr/local/ups/bin
would do nicely.

----------------------------------------------------------------------

Comment By: alain williams (addw-guest)
Date: 2007-09-24 20:30

Message:
It should be in the PATH so that a simple install will work, including the startup scripts. Ideally, the default install directory (ie might not be /usr/local/ups/) should be substituted into either /etc/sysconfig/ups or the startup scripts.

Yes: it is not hard to patch the script to work, but it is an extra task that isn't too hard to automate.

----------------------------------------------------------------------

Comment By: Arjen de Korte (adkorte-guest)
Date: 2007-09-24 20:12

Message:
Can you explain why you think it should be in the path?

----------------------------------------------------------------------

You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=411542&aid=304601&group_id=30602



More information about the NUT-tracker mailing list