]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- now it works (I hope :>)
authoralchemyx <alchemyx@pld-linux.org>
Fri, 4 Feb 2000 09:09:01 +0000 (09:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- mysql ending still looks awful

Changed files:
    mysql.init -> 1.2

mysql.init

index 3f101f83c4651f5643d8d4649fbc7eb266ff3cfa..377afa9ea489ed98be9dda9b97e113760ad1924e 100644 (file)
@@ -23,12 +23,13 @@ if [ "${NETWORKING}" = "no" ]; then
        exit 1
 fi
 
-case "$mode" in
+case "$1" in
+    start)
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/mysql ]; then
                show Starting mysql
                busy
-               su mysql -c '/usr/bin/msqld
+               su mysql -c '/usr/sbin/mysqld > /dev/null &'
                touch /var/lock/subsys/mysql
                deltext
                ok
@@ -39,13 +40,13 @@ case "$mode" in
        ;;
   stop)
        show Stopping mysql service
-       killproc postmaster
+       killproc mysqld
        sleep 2
        rm -f /var/state/mysql/mysqld.pid
        rm -f /var/lock/subsys/mysql
        ;;
   status)
-       status postmaster
+       status mysqld
        ;;
   restart|reload)
        $0 stop
@@ -54,35 +55,6 @@ case "$mode" in
   *)
        echo "Usage: mysql {start|stop|status|restart|reload}"
        exit 1
-  'start')
-
-    if test -x $bindir/safe_mysqld
-    then
-      # Give extra arguments to mysqld with the my.cnf file. This script may
-      # be overwritten at next upgrade.
-      $bindir/safe_mysqld --user=$mysql_daemon_user --pid-file=$pid_file --datadir=$datadir &
-    else
-      echo "Can't execute $bindir/safe_mysqld"
-    fi
-    ;;
-
-  'stop')
-    # Stop daemon. We use a signal here to avoid having to know the
-    # root password.
-    if test -f "$pid_file"
-    then
-      mysqld_pid=`cat $pid_file`
-      echo "Killing mysqld with pid $mysqld_pid"
-      kill $mysqld_pid
-      # mysqld should remove the pid_file when it exits.
-    else
-      echo "No mysqld pid file found. Looked for $pid_file."
-    fi
-    ;;
-
-  *)
-    # usage
-    echo "usage: $0 start|stop"
-    exit 1
-    ;;
+       ;;
 esac
+
This page took 0.029673 seconds and 4 git commands to generate.