/sbin/ipvsadm doesn't work when $PATH doesn't contain /sbin
Bug #347165 reported by
Ruben Laban
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ipvsadm (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: ipvsadm
As /sbin/ipvsadm is a wrapper script for 2 versions of ipvsadm and isn't using full paths to those executables, running /sbin/ipvsadm when /sbin is not part of $PATH, the script will fail. (Root) Cronjobs by default don't appear to have /sbin in their $PATH, so any cronjobs running /sbin/ipvsadm will fail, unless $PATH is overridden.
Output from a script using bash -x using /sbin/ipvsadm :
+ /sbin/ipvsadm -Lnf 4
exec: 15: ipvsadm-1.24: not found
To post a comment you must log in.
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:
1. Is this reproducible?
2. If so, what specific steps should we take to recreate this bug? Be as detailed as possible.
This will help us to find and resolve the problem.