Skip to content

Commit 47f5645

Browse files
committed
Merge branch 'mysql-5.6' into mysql-5.7
2 parents 623bf3b + e802f82 commit 47f5645

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/mysqld_safe.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ want_syslog=0
2424
syslog_tag=
2525
user='@MYSQLD_USER@'
2626
pid_file=
27+
pid_file_append=
2728
err_log=
29+
err_log_append=
2830
timestamp_format=UTC
2931

3032
syslog_tag_mysqld=mysqld
@@ -604,15 +606,17 @@ then
604606
err_log="$err_log".err
605607
fi
606608

609+
err_log_append="$err_log"
607610
case "$err_log" in
608611
/* ) ;;
609612
* ) err_log="$DATADIR/$err_log" ;;
610613
esac
611614
else
612615
err_log=$DATADIR/`@HOSTNAME@`.err
616+
err_log_append=`@HOSTNAME@`.err
613617
fi
614618

615-
append_arg_to_args "--log-error=$err_log"
619+
append_arg_to_args "--log-error=$err_log_append"
616620

617621
if [ $want_syslog -eq 1 ]
618622
then
@@ -710,13 +714,15 @@ fi
710714
if test -z "$pid_file"
711715
then
712716
pid_file="$DATADIR/`@HOSTNAME@`.pid"
717+
pid_file_append="`@HOSTNAME@`.pid"
713718
else
719+
pid_file_append="$pid_file"
714720
case "$pid_file" in
715721
/* ) ;;
716722
* ) pid_file="$DATADIR/$pid_file" ;;
717723
esac
718724
fi
719-
append_arg_to_args "--pid-file=$pid_file"
725+
append_arg_to_args "--pid-file=$pid_file_append"
720726

721727
if test -n "$mysql_unix_port"
722728
then

0 commit comments

Comments
 (0)