Ticket #768: mysql4.sh
| File mysql4.sh, 338 bytes (added by bchesneau@…, 23 years ago) |
|---|
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | NAME=mysql4.sh |
| 3 | CAT=/bin/cat |
| 4 | KILL=/bin/kill |
| 5 | PIDFILE=mysqld.pid |
| 6 | |
| 7 | case "$1" in |
| 8 | |
| 9 | start) |
| 10 | |
| 11 | echo "starting mysql" |
| 12 | __PREFIX/bin/mysqld_safe --user=mysql & |
| 13 | ;; |
| 14 | |
| 15 | stop) |
| 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 | |
| 25 | esac |
