Files
meta-openembedded/meta-oe/recipes-support/mysql/files/mysqld.sh
Koen Kooi c58cc7d379 move layer into meta-oe in preparation for future splits
As per TSC decision

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-03-17 21:41:22 +01:00

25 lines
321 B
Bash

# MySQL init script
. /etc/default/rcS
case "$1" in
start)
/usr/bin/mysqld_safe &
;;
stop)
if test -f /var/lib/mysql/mysqld.pid ; then
PID=`cat /var/lib/mysql/mysqld.pid`
kill $PID
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/mysqld {start|stop|restart}"
;;
esac
exit 0