summaryrefslogtreecommitdiff
path: root/recipes/mysql/files/mysqld.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mysql/files/mysqld.sh')
-rw-r--r--recipes/mysql/files/mysqld.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/mysql/files/mysqld.sh b/recipes/mysql/files/mysqld.sh
new file mode 100644
index 0000000000..c94772e202
--- /dev/null
+++ b/recipes/mysql/files/mysqld.sh
@@ -0,0 +1,20 @@
+# MySQL init script
+
+. /etc/default/rcS
+
+case "$1" in
+ start)
+ /usr/bin/mysqld_safe &
+ ;;
+ stop)
+ if test -f /var/run/mysqld.pid ; then
+ PID=`cat /var/run/mysqld.pid`
+ kill $PID
+ fi
+ ;;
+ *)
+ echo "Usage: /etc/init.d/mysqld {start|stop}"
+ ;;
+esac
+
+exit 0