mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-15 06:45:32 +01:00
25 lines
321 B
Bash
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
|