Re: init script can't find /bin/dirname

2014-12-22 Thread Sven Joachim
On 2014-12-22 19:23 +0100, Rob Owens wrote: > $ ls -l /bin/dirname > -rwxr-xr-x 1 root root 13880 Jan 30 2007 /bin/dirname > > $ file /bin/dirname > dirname: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), > dynamically linked (uses shared libs), for GNU/Linux 2.4.1, stripped > > Simila

Re: init script can't find /bin/dirname

2014-12-22 Thread Rob Owens
On Mon, Dec 22, 2014 at 10:55:15AM -0500, Rob Owens wrote: > On Mon, Dec 22, 2014 at 04:41:05PM +0100, Sven Joachim wrote: > > On 2014-12-22 04:10 +0100, Rob Owens wrote: > > > So I'm still not sure why /etc/init.d/mysql cannot find "dirname" and > > > "basename" when running at system boot, but it

Re: init script can't find /bin/dirname

2014-12-22 Thread Rob Owens
On Mon, Dec 22, 2014 at 04:41:05PM +0100, Sven Joachim wrote: > On 2014-12-22 04:10 +0100, Rob Owens wrote: > > So I'm still not sure why /etc/init.d/mysql cannot find "dirname" and > > "basename" when running at system boot, but it can find them when run > > from a terminal after boot. > > Maybe

Re: init script can't find /bin/dirname

2014-12-22 Thread Sven Joachim
On 2014-12-22 04:10 +0100, Rob Owens wrote: > I rebooted and found that the path is fine: > > /sbin:/usr/sbin:/bin:/usr/bin A notable difference to the default PATH of a logged in user (with the standard /etc/profile, anyway) is that init places /bin before /usr/bin. > So I'm still not sure why

Re: init script can't find /bin/dirname

2014-12-21 Thread Rob Owens
On Sun, Dec 21, 2014 at 06:07:20PM -0500, Rob Owens wrote: > On Sun, Dec 21, 2014 at 10:32:07PM +0100, Sven Joachim wrote: > > On 2014-12-21 21:58 +0100, Rob Owens wrote: > > > I know I could add a PATH statement to the init script, but this problem > > > is my own doing and I'd like to fix it righ

Re: init script can't find /bin/dirname

2014-12-21 Thread Rob Owens
On Sun, Dec 21, 2014 at 10:32:07PM +0100, Sven Joachim wrote: > On 2014-12-21 21:58 +0100, Rob Owens wrote: > > > The /etc/init.d/mysql script on one of my systems is complaning that it > > can't find /bin/dirname and /bin/basename. Line 24 of the script is > > this: > > > > SELF=$(cd $(dirname $

Re: init script can't find /bin/dirname

2014-12-21 Thread Sven Joachim
On 2014-12-21 21:58 +0100, Rob Owens wrote: > The /etc/init.d/mysql script on one of my systems is complaning that it > can't find /bin/dirname and /bin/basename. Line 24 of the script is > this: > > SELF=$(cd $(dirname $0); pwd -P)/$(basename $0) > > Both dirname and basename live in /usr/bin, n

init script can't find /bin/dirname

2014-12-21 Thread Rob Owens
The /etc/init.d/mysql script on one of my systems is complaning that it can't find /bin/dirname and /bin/basename. Line 24 of the script is this: SELF=$(cd $(dirname $0); pwd -P)/$(basename $0) Both dirname and basename live in /usr/bin, not /bin. I know I could add a PATH statement to the init