diff options
author | Chris Rees <crees@FreeBSD.org> | 2013-04-24 17:28:01 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2013-04-24 17:28:01 +0000 |
commit | 68bfa4c6fd80ccac6aeb09adcb78d10c6ecedea7 (patch) | |
tree | 3c95ec69a45bbc13c96da89b1bef1fd8f85176df /databases/mysql51-server | |
parent | b5da37c4e54f1935039a5d2dbffc421e380177bd (diff) | |
download | ports-68bfa4c6fd80ccac6aeb09adcb78d10c6ecedea7.tar.gz ports-68bfa4c6fd80ccac6aeb09adcb78d10c6ecedea7.zip |
Notes
Diffstat (limited to 'databases/mysql51-server')
-rw-r--r-- | databases/mysql51-server/files/mysql-server.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/databases/mysql51-server/files/mysql-server.in b/databases/mysql51-server/files/mysql-server.in index 14104b1cbba4..40d797e3acb0 100644 --- a/databases/mysql51-server/files/mysql-server.in +++ b/databases/mysql51-server/files/mysql-server.in @@ -35,7 +35,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_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}" procname="%%PREFIX%%/libexec/mysqld" |