File mysql-group.patch of Package mysql

--- scripts/mysqld_safe.sh
+++ scripts/mysqld_safe.sh
@@ -69,6 +69,10 @@
       --pid-file=*) pid_file=`echo "$arg" | sed -e "s;--pid-file=;;"` ;;
       --user=*) user=`echo "$arg" | sed -e "s;--[^=]*=;;"` ; SET_USER=1 ;;
 
+      --group=*)
+        group=`echo "$arg" | sed -e "s;--group=;;"`
+        ;;
+
       # these two might have been set in a [mysqld_safe] section of my.cnf
       # they are added to mysqld command line to override settings from my.cnf
       --socket=*)  mysql_unix_port=`echo "$arg" | sed -e "s;--socket=;;"` ;;
@@ -173,6 +177,7 @@
 export MYSQL_HOME
 
 user=@MYSQLD_USER@
+group=mysql
 niceness=0
 
 # these rely on $DATADIR by default, so we'll set them later on
@@ -315,7 +320,7 @@
     USER_OPTION="--user=$user"
   fi
   # If we are root, change the err log to the right user.
-  touch $err_log; chown $user $err_log
+  touch $err_log; chown $user.$group $err_log
   if test -n "$open_files"
   then
     ulimit -n $open_files
openSUSE Build Service is sponsored by