[Bug 861145] New: Collectd Feature Request - Configure $PATH automatically
https://bugzilla.novell.com/show_bug.cgi?id=861145 https://bugzilla.novell.com/show_bug.cgi?id=861145#c0 Summary: Collectd Feature Request - Configure $PATH automatically Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: All OS/Version: openSUSE 13.1 Status: NEW Severity: Enhancement Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: tonysu@su-networking.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; Touch) Original request to collectd https://github.com/collectd/collectd/issues/527 IMO all the reasons for declining setting the collectd path in that request do not apply to openSUSE at all. As noted, existing code already reads the relevant paths to the collectd binary (required) and the collectd config files (optional), so it's likely that creating a file /etc/profile.d/collectd which contains the command to add the collectd path should be easy. AFAIK there is no reason for any future collectd package to install to a non-default location, so it's possible to simply hardcode "export PATH=$PATH:/opt/collectd/sbin:/opt/collectd/etc" but of course that risks breaking the PATH if for some reason the binary location should change. As unlikely as it would be that the binary location might change, an easy decision would be to just hardcode the path, otherwise the code could be inspected for the variable that is already used holding the PATH and just use that. Reproducible: Always Steps to Reproduce: 1. Install collectd package 2. export PATH=$PATH:/opt/collectd/sbin:/opt/collectd/etc Actual Results: Without setting the $PATH, the User has to find (eg locate) the binary to execute Alternatively, although it might not be obvious, a systemd Unit has been created which works. Expected Results: After collectd package installation, there should be some clue what was installed, now to invoke. This is a minor feature request. There is a more serious problem I will submit in a separate bug that makes collectd unconfigurable on openSUSE -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=861145 https://bugzilla.novell.com/show_bug.cgi?id=861145#c zhang jiajun <jzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |nix@opensuse.org |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com