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

nut-featurerequests at alioth.debian.org nut-featurerequests at alioth.debian.org
Tue Jan 8 10:28:11 UTC 2008


Feature Requests item #304601, was opened at 2007-07-16 18:00
>Status: Closed
Priority: 3
Submitted By: alain williams (addw-guest)
Assigned to: Nobody (None)
Summary: /usr/local/ups/ should be in PATH 
Category: None
Group: 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: Arjen de Korte (adkorte-guest)
Date: 2007-09-25 09:38

Message:
There is no need to do that, since this will all be set properly by the .spec file in that same directory. Remember that this init script is meant to be included in an RPM.

If you want to take it out of there, you're basically on your own. This is certainly not something we should support.

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

Comment By: alain williams (addw-guest)
Date: 2007-09-24 22:12

Message:
OK, in that case change the default installation directory (configure --prefix) to be consistent with the default installation directory. /usr/local/ups/ is also the directory mentioned in the INSTALL file.

When installing something new I often do like to have it in a directory away from everything else so that I can blow it away if it does not do what I want/expect it to do.



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

Comment By: Arjen de Korte (adkorte-guest)
Date: 2007-09-24 21:57

Message:
The init scripts we provide are for the default installation that is used by a given distro. It makes no sense to install NUT in different (with regard to the distro's default) location and still use the same init script.

You can't have both the distro's version of NUT and your own running at the same time. In order to prevent having different versions of NUT running on the same system, I don't think we should support creating init scripts for installations that are in other locations than the init script already expects.

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

Comment By: alain williams (addw-guest)
Date: 2007-09-24 21: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 21: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=411545&aid=304601&group_id=30602



More information about the NUT-tracker mailing list