pkgsrc/databases/mysql4-server/files/mysqld.sh
martti 3a8f34af4e MySQL is a SQL (Structured Query Language) database server. SQL is the
most popular database language in the world.  MySQL is a client-server
implementation that consists of a server daemon `mysqld' and many
different client programs/libraries.

The main goals of MySQL are speed and robustness.

The base upon which MySQL is built is a set of routines that have been
used in a highly demanding production environment for many years.  While
MySQL is still in development it already offers a rich and highly useful
function set.

The official way to pronounce 'MySQL' is 'My Ess Que Ell' (Not MY-SEQUEL).

This package contains the MySQL server programs and libraries.
2003-12-20 16:00:42 +00:00

31 lines
565 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: mysqld.sh,v 1.1.1.1 2003/12/20 16:00:43 martti Exp $
#
# PROVIDE: mysqld
# REQUIRE: DAEMON LOGIN mountall
# KEYWORD: shutdown
# Note: this needs NetBSD 1.6 or newer
#
. /etc/rc.subr
name="mysqld"
rcvar=$name
command="@PREFIX@/bin/mysqld_safe"
procname="@PREFIX@/libexec/${name}"
pidfile="@MYSQL_DATADIR@/`hostname`.pid"
start_cmd="mysqld_start"
required_files="@MYSQL_DATADIR@/mysql/host.frm"
mysqld_start()
{
echo "Starting mysqld."
ulimit -n 4096
${command} ${mysqld_flags} &
}
load_rc_config $name
run_rc_command "$1"