summaryrefslogtreecommitdiff
path: root/recipes/mysql/files/mysqld.sh
blob: c94772e20288235905e5dd325fb5ed737885401d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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