Ticket #768: mysql4.2.sh
File mysql4.2.sh, 384 bytes (added by bchesneau@…, 21 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 --pid-file=__PREFIX/var/run/mysqld/mysqld.pid & |
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 |