summaryrefslogtreecommitdiff
path: root/databases/mysql4-server/files
diff options
context:
space:
mode:
authormartti <martti>2003-12-20 16:00:42 +0000
committermartti <martti>2003-12-20 16:00:42 +0000
commit463ac13287c3a407b1b27e8e299dc5112cdae5dd (patch)
tree2ff775d5ebb576d665dad33ec7e3806dae7e831d /databases/mysql4-server/files
parent3799350b4642546b3a7c43312612cc17a5f8bb50 (diff)
downloadpkgsrc-463ac13287c3a407b1b27e8e299dc5112cdae5dd.tar.gz
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.
Diffstat (limited to 'databases/mysql4-server/files')
-rw-r--r--databases/mysql4-server/files/mysqld.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/databases/mysql4-server/files/mysqld.sh b/databases/mysql4-server/files/mysqld.sh
new file mode 100644
index 00000000000..7ae04dd072b
--- /dev/null
+++ b/databases/mysql4-server/files/mysqld.sh
@@ -0,0 +1,31 @@
+#!@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"