wok-next rev 11829

mysql: improve initscript
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Feb 27 01:19:40 2012 +0100 (2012-02-27)
parents 7fec5a9889c5
children a5c481771aea
files mysql/stuff/etc/init.d/mysql
line diff
     1.1 --- a/mysql/stuff/etc/init.d/mysql	Mon Feb 27 00:38:58 2012 +0100
     1.2 +++ b/mysql/stuff/etc/init.d/mysql	Mon Feb 27 01:19:40 2012 +0100
     1.3 @@ -27,7 +27,7 @@
     1.4        mysql_install_db --user=mysql --datadir=/var/lib/mysql
     1.5      fi
     1.6      echo -n "Starting $DESC: $NAME... "
     1.7 -    $DAEMON $OPTIONS &
     1.8 +    $DAEMON $OPTIONS  > /dev/null &
     1.9      status
    1.10      sleep 2
    1.11      for i in /etc/mysql.d/* ; do
    1.12 @@ -43,7 +43,7 @@
    1.13        exit 1
    1.14      fi
    1.15      echo -n "Stopping $DESC: $NAME... "
    1.16 -    kill `cat $PIDFILE`
    1.17 +    kill `cat $PIDFILE`> /dev/null
    1.18      status
    1.19      sleep 2
    1.20      ;;