Actually, the problem shows when you start cbq with service
(service cbq start); the service script starts the cbq
script with a clean environment (env -i), so you only get
the default path of bash (/usr/local/bin:/usr/bin:/bin). The
ip command is usually at /sbin.
The solution is to patch the cbq script and restore the PATH
- AND export it:
export PATH="${PATH}:/sbin"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=35269
Actually, the problem shows when you start cbq with service
(service cbq start); the service script starts the cbq
script with a clean environment (env -i), so you only get
the default path of bash (/usr/local/bin:/usr/bin:/bin). The
ip command is usually at /sbin.
The solution is to patch the cbq script and restore the PATH
- AND export it:
export PATH="${PATH}:/sbin"