mysql shared objects getting lost after reboot
Scot Hetzel
swhetzel at gmail.com
Tue Mar 28 19:52:09 UTC 2006
On 3/28/06, Ken Gunderson <kgunders at teamcool.net> wrote:
> On Tue, 28 Mar 2006 13:10:33 -0600
> "Scot Hetzel" <swhetzel at gmail.com> wrote:
>
> > On 3/28/06, Ken Gunderson <kgunders at teamcool.net> wrote:
> > > On Tue, 28 Mar 2006 11:28:44 -0600
> > > > You should also see the script that does the ldconfig show the
> > > > /usr/local/libdata/ldconfig/mysql when you boot the system.
> > >
> > > Might this be related to the removal of /etc/rd.c/ldconfig_compat? /
> > > etc/rc.d/ldconfig doesn't seem to be picking up the libs at boot. On a
> > > system where I've done a rebuild of the ports w/o rebooting:
> > >
> > Do you have the following revisions of /etc/rc.d/ldconfig?
> >
> > 1.15 - CURRENT 2006/01/08
> > 1.14.2.1 - RELENG_6 2006/01/17
> > 1.11.2.2 - RELENG_5 2006/01/17
>
> On a 6.0-p6 box:
>
> gw02-ny# head ldconfig
> #!/bin/sh
> #
> # $NetBSD: ldconfig,v 1.5 2002/03/22 04:33:58 thorpej Exp $
> # $FreeBSD: src/etc/rc.d/ldconfig,v 1.14 2005/01/16 08:34:30 obrien Exp $
> #
>
> On a 5.4-p13 box:
>
> kobuk# head /etc/rc.d/ldconfig
> #!/bin/sh
> #
> # $NetBSD: ldconfig,v 1.5 2002/03/22 04:33:58 thorpej Exp $
> # $FreeBSD: src/etc/rc.d/ldconfig,v 1.11.2.1 2004/10/10 09:50:53 mtm Exp $
> #
>
Looks like you need to update your ldconfig to a newer version on both
of the 5.x and 6.x systems.
Attached are the newer versions of the /etc/rc.d/ldconfig script for
your systems.
Scot
--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
-------------- next part --------------
#!/bin/sh
#
# $NetBSD: ldconfig,v 1.5 2002/03/22 04:33:58 thorpej Exp $
# $FreeBSD: /repoman/r/ncvs/src/etc/rc.d/ldconfig,v 1.11.2.2 2006/01/17 07:33:33 dougb Exp $
#
# PROVIDE: ldconfig
# REQUIRE: mountcritremote
# BEFORE: DAEMON
. /etc/rc.subr
name="ldconfig"
ldconfig_command="/sbin/ldconfig"
start_cmd="ldconfig_start"
stop_cmd=":"
ldconfig_start()
{
_ins=
ldconfig=${ldconfig_command}
checkyesno ldconfig_insecure && _ins="-i"
if [ -x "${ldconfig_command}" ]; then
_LDC="/lib /usr/lib"
for i in ${ldconfig_local_dirs}; do
if [ -d "${i}" ]; then
ldconfig_paths="${ldconfig_paths} `find ${i} -type f`"
fi
done
for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do
if [ -r "${i}" ]; then
_LDC="${_LDC} ${i}"
fi
done
echo 'ELF ldconfig path:' ${_LDC}
${ldconfig} -elf ${_ins} ${_LDC}
case `sysctl -n hw.machine_arch` in
amd64)
for i in ${ldconfig_local32_dirs}; do
if [ -d "${i}" ]; then
ldconfig32_paths="${ldconfig32_paths} `find ${i} -type f`"
fi
done
echo '32-bit compatibility ldconfig path:' ${ldconfig32_paths}
${ldconfig} -32 -m ${_ins} ${ldconfig32_paths}
;;
esac
# Legacy aout support for i386 only
case `sysctl -n hw.machine_arch` in
i386)
# Default the a.out ldconfig path.
: ${ldconfig_paths_aout=${ldconfig_paths}}
_LDC=/usr/lib/aout
for i in ${ldconfig_paths_aout} /etc/ld.so.conf; do
if [ -r "${i}" ]; then
_LDC="${_LDC} ${i}"
fi
done
echo 'a.out ldconfig path:' ${_LDC}
${ldconfig} -aout ${_ins} ${_LDC}
;;
esac
fi
}
load_rc_config $name
run_rc_command "$1"
-------------- next part --------------
#!/bin/sh
#
# $NetBSD: ldconfig,v 1.5 2002/03/22 04:33:58 thorpej Exp $
# $FreeBSD: /repoman/r/ncvs/src/etc/rc.d/ldconfig,v 1.14.2.1 2006/01/17 06:53:17 dougb Exp $
#
# PROVIDE: ldconfig
# REQUIRE: mountcritremote cleanvar
# BEFORE: DAEMON
. /etc/rc.subr
name="ldconfig"
ldconfig_command="/sbin/ldconfig"
start_cmd="ldconfig_start"
stop_cmd=":"
ldconfig_start()
{
_ins=
ldconfig=${ldconfig_command}
checkyesno ldconfig_insecure && _ins="-i"
if [ -x "${ldconfig_command}" ]; then
_LDC="/lib /usr/lib"
for i in ${ldconfig_local_dirs}; do
if [ -d "${i}" ]; then
ldconfig_paths="${ldconfig_paths} `find ${i} -type f`"
fi
done
for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do
if [ -r "${i}" ]; then
_LDC="${_LDC} ${i}"
fi
done
echo 'ELF ldconfig path:' ${_LDC}
${ldconfig} -elf ${_ins} ${_LDC}
case `sysctl -n hw.machine_arch` in
amd64)
for i in ${ldconfig_local32_dirs}; do
if [ -d "${i}" ]; then
ldconfig32_paths="${ldconfig32_paths} `find ${i} -type f`"
fi
done
echo '32-bit compatibility ldconfig path:' ${ldconfig32_paths}
${ldconfig} -32 -m ${_ins} ${ldconfig32_paths}
;;
esac
# Legacy aout support for i386 only
case `sysctl -n hw.machine_arch` in
i386)
# Default the a.out ldconfig path.
: ${ldconfig_paths_aout=${ldconfig_paths}}
_LDC=/usr/lib/aout
for i in ${ldconfig_paths_aout} /etc/ld.so.conf; do
if [ -r "${i}" ]; then
_LDC="${_LDC} ${i}"
fi
done
echo 'a.out ldconfig path:' ${_LDC}
${ldconfig} -aout ${_ins} ${_LDC}
;;
esac
fi
}
load_rc_config $name
run_rc_command "$1"
More information about the freebsd-amd64
mailing list