[lug] Scripting something that relies on pwd

Nate Duehr nate at natetech.com
Mon Feb 19 22:20:18 MST 2001


On Mon, Feb 19, 2001 at 09:37:04PM -0700, John Starkey wrote:
> Mysql returns an error telling me it can't find the dir. Once I'm in the
> parent dir it executes fine.
> 
> Nate Duehr wrote:
> 
> > On Mon, Feb 19, 2001 at 08:21:55PM -0700, John Starkey wrote:
> > > This haas been an issue for a few weeks. I need to start mysql on boot
> > > and it's only allowing me to do so from it's parent dir. I've tried
> > > adding to rc.local (when it was running at boot) and adding a script in
> > > the mysql parent dir. But that didn't work. Do i need to chroot when i
> > > do this? If so , how do i get back out for the rest of the boot? If not.
> > > Anyone know how i can do this?
> >
> > Any errors in the logs when it doesn't start?

Did you compile MySQL yourself?  Where does it live on your machine?

I'd start with seeing if it's in the path of the environment that is
calling it.

Also when you were calling it from rc.local, were you using the full
path to the binary, or just the name?

-- 
Nate Duehr <nate at natetech.com>

GPG Key fingerprint = DCAF 2B9D CC9B 96FA 7A6D AAF4 2D61 77C5 7ECE C1D2
Public Key available upon request, or at wwwkeys.pgp.net and others.



More information about the LUG mailing list