diff options
author | crees <crees@FreeBSD.org> | 2013-04-25 01:28:01 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2013-04-25 01:28:01 +0800 |
commit | 22e3452817c7a344208dcce7ec46772a537caba9 (patch) | |
tree | 3c95ec69a45bbc13c96da89b1bef1fd8f85176df /databases/mysql56-server | |
parent | d94914b3e11e15f49940c620b1a551f1fc6081cc (diff) | |
download | freebsd-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.in | 3 |
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" |