aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql56-server
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2013-04-25 01:28:01 +0800
committercrees <crees@FreeBSD.org>2013-04-25 01:28:01 +0800
commit22e3452817c7a344208dcce7ec46772a537caba9 (patch)
tree3c95ec69a45bbc13c96da89b1bef1fd8f85176df /databases/mysql56-server
parentd94914b3e11e15f49940c620b1a551f1fc6081cc (diff)
downloadfreebsd-ports-gnome-22e3452817c7a344208dcce7ec46772a537caba9.tar.gz
freebsd-ports-gnome-22e3452817c7a344208dcce7ec46772a537caba9.tar.zst
freebsd-ports-gnome-22e3452817c7a344208dcce7ec46772a537caba9.zip
Very slight speedup on rc file parsing; use hostname variable in preference
to calling /bin/hostname if available Approved by: ale (maintainer)
Diffstat (limited to 'databases/mysql56-server')
-rw-r--r--databases/mysql56-server/files/mysql-server.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/databases/mysql56-server/files/mysql-server.in b/databases/mysql56-server/files/mysql-server.in
index 5eeb978225b4..d2cdc080e216 100644
--- a/databases/mysql56-server/files/mysql-server.in
+++ b/databases/mysql56-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"