From 063b7bbe38b598d6c22124d9588155de6eb2ce08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Dor=C5=88=C3=A1k?= Date: Fri, 18 Mar 2016 16:23:14 +0100 Subject: [PATCH] use uname -n instead of hostname resolves: #1317907 --- mysql-scripts-common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql-scripts-common.sh b/mysql-scripts-common.sh index 925cf9c..bf2888f 100644 --- a/mysql-scripts-common.sh +++ b/mysql-scripts-common.sh @@ -47,12 +47,12 @@ datadir="$result" # returns log-error # log-error might be defined in mysqld_safe and mysqld sections, # the former has bigger priority -get_mysql_option "$server_sections" log-error "$datadir/`hostname`.err" +get_mysql_option "$server_sections" log-error "$datadir/`uname -n`.err" errlogfile="$result" get_mysql_option "$server_sections" socket "@MYSQL_UNIX_ADDR@" socketfile="$result" -get_mysql_option "$server_sections" pid-file "$datadir/`hostname`.pid" +get_mysql_option "$server_sections" pid-file "$datadir/`uname -n`.pid" pidfile="$result"