Ticket #768: mysql4.sh

File mysql4.sh, 338 bytes (added by bchesneau@…, 21 years ago)

mysql4.sh

Line 
1#!/bin/sh
2NAME=mysql4.sh
3CAT=/bin/cat
4KILL=/bin/kill
5PIDFILE=mysqld.pid
6
7case "$1" in
8
9start)
10 
11  echo "starting mysql"
12  __PREFIX/bin/mysqld_safe --user=mysql &
13  ;;
14
15stop)
16  echo "stopping mysql"
17  $KILL -15 `$CAT __PREFIX/var/run/mysqld/$PIDFILE` 
18  ;;
19
20*)
21  echo "Usage: __PREFIX/etc/rc.d/mysql4.sh {start|stop}"
22  exit 1
23  ;;
24
25esac