openbsd-ports/databases/mysql/pkg/mysqld.rc
ajacoutot 490432a2f1 Simplify: 'mysqladmin -s ping' is not good enough for rc_check because
while the daemon is shutting down, the access will be denied but the
process will still exists until it has shutdown completely.
This allows restart to work properly.

discussed with and ok robert@
2011-03-08 10:46:31 +00:00

14 lines
209 B
Bash
Executable File

#!/bin/sh
#
# $OpenBSD: mysqld.rc,v 1.12 2011/03/08 10:46:31 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/mysqld_safe"
. /etc/rc.d/rc.subr
pexp="${TRUEPREFIX}/libexec/mysqld"
rc_bg=YES
rc_reload=NO
rc_cmd $1