[Linux-HA] patch for mysql ocf script
Chun Tian (binghe)
binghe.lisp at gmail.com
Tue Oct 16 20:54:26 MDT 2007
mysql ocf script also check the OCF_RESKEY_test_user in /etc/passwd:
grep $OCF_RESKEY_test_user /etc/passwd >/dev/null 2>&1
if [ ! $? -eq 0 ]; then
ocf_log err "Test user $OCF_RESKEY_test_user doesn't exit";
exit $OCF_ERR_ARGS;
fi
I dont's think this is correct because MySQL user and system user are
different object.
Raoul Bhatia [IPAX] wrote:
> hi,
>
> may i propose a patch for the mysql ocf script which should help all
> people who do not use /etc/passwd and /etc/group for their user
> accounts (e.g. ldap). i replaced the greps with "getent".
>
> on linux, getent ships with glibc. from what i see there is a getent
> available on freebsd [1], openbsd [2] and solaris [3].
>
> thank you,
> raoul bhatia
>
> [1] http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/getent/
> [2] http://ftp.bg.openbsd.org/OpenBSD/src/usr.bin/getent/
> [3] http://www.softpanorama.org/Net/Solaris/solaris_getent.shtml
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
More information about the Linux-HA
mailing list