aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql55-server
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2013-04-24 17:28:01 +0000
committerChris Rees <crees@FreeBSD.org>2013-04-24 17:28:01 +0000
commit68bfa4c6fd80ccac6aeb09adcb78d10c6ecedea7 (patch)
tree3c95ec69a45bbc13c96da89b1bef1fd8f85176df /databases/mysql55-server
parentb5da37c4e54f1935039a5d2dbffc421e380177bd (diff)
downloadports-68bfa4c6fd80ccac6aeb09adcb78d10c6ecedea7.tar.gz
ports-68bfa4c6fd80ccac6aeb09adcb78d10c6ecedea7.zip
Notes
Diffstat (limited to 'databases/mysql55-server')
-rw-r--r--databases/mysql55-server/files/mysql-server.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/databases/mysql55-server/files/mysql-server.in b/databases/mysql55-server/files/mysql-server.in
index 5eeb978225b4..d2cdc080e216 100644
--- a/databases/mysql55-server/files/mysql-server.in
+++ b/databases/mysql55-server/files/mysql-server.in
@@ -38,7 +38,8 @@ load_rc_config $name
mysql_user="mysql"
mysql_limits_args="-e -U ${mysql_user}"
-pidfile=${mysql_pidfile:-"${mysql_dbdir}/`/bin/hostname`.pid"}
+: ${hostname:=`/bin/hostname`}
+pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"}
command="/usr/sbin/daemon"
command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}"
procname="%%PREFIX%%/libexec/mysqld"