summaryrefslogtreecommitdiffstats
path: root/abs/core/mysql/mysqld
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/mysql/mysqld')
-rwxr-xr-xabs/core/mysql/mysqld11
1 files changed, 3 insertions, 8 deletions
diff --git a/abs/core/mysql/mysqld b/abs/core/mysql/mysqld
index 0fcecf7..5857df8 100755
--- a/abs/core/mysql/mysqld
+++ b/abs/core/mysql/mysqld
@@ -22,21 +22,16 @@ if [ ! `egrep '^mysql:' /etc/passwd` ]; then
fi
if [ ! -d $MYSQLD_ROOT ]; then
- mkdir $MYSQLD_ROOT
- /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql
+ mkdir -p $MYSQLD_ROOT
+ /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql 2>/dev/null 1>/dev/null
chown -R mysql.mysql $MYSQLD_ROOT
fi
-if [ ! -e /var/log/mysqld.log ]; then
- touch /var/log/mysqld.log
- chown mysql /var/log/mysqld.log
-fi
-
case "$1" in
start)
stat_busy "Starting MySQL"
if [ -z "$PID" ]; then
- /usr/bin/mysqld_safe --datadir=$MYSQLD_ROOT &>/dev/null &
+ /usr/bin/mysqld_safe --skip-name-resolve --datadir=$MYSQLD_ROOT >/dev/null 2>/dev/null &
if [ $? -gt 0 ]; then
stat_fail
exit 1