From 87c875c2635c7c35e58ef68bddc4d6d1d489a220 Mon Sep 17 00:00:00 2001 From: Alex Dupre Date: Mon, 20 Dec 2010 08:57:57 +0000 Subject: [PATCH] Fix startup script and bump PORTREVISION. PR: ports/153296 [1] Submitted by: Steve Wills [1], dougb Lesson learned: Two identical PRs don't make a good patch. --- databases/mysql51-server/Makefile | 2 +- databases/mysql51-server/files/mysql-server.sh.in | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile index ab0251bcf805..d6d063cf056e 100644 --- a/databases/mysql51-server/Makefile +++ b/databases/mysql51-server/Makefile @@ -7,7 +7,7 @@ PORTNAME?= mysql PORTVERSION= 5.1.54 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_MYSQL} MASTER_SITE_SUBDIR= MySQL-5.1 diff --git a/databases/mysql51-server/files/mysql-server.sh.in b/databases/mysql51-server/files/mysql-server.sh.in index 76c9e9d4fa2d..f5aab77782c1 100644 --- a/databases/mysql51-server/files/mysql-server.sh.in +++ b/databases/mysql51-server/files/mysql-server.sh.in @@ -32,13 +32,12 @@ load_rc_config $name : ${mysql_enable="NO"} : ${mysql_limits="NO"} : ${mysql_dbdir="/var/db/mysql"} -: ${mysql_pidfile="${mysql_dbdir}/`/bin/hostname`.pid"} -: ${mysql_args=""} mysql_user="mysql" mysql_limits_args="-e -U ${mysql_user}" +pidfile=${mysql_pidfile:-"${mysql_dbdir}/`/bin/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=${mysql_pidfile} ${mysql_args}" +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" start_precmd="${name}_prestart" start_postcmd="${name}_poststart"