diff options
author | ale <ale@FreeBSD.org> | 2010-09-30 17:10:49 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2010-09-30 17:10:49 +0800 |
commit | 50606be8a576784f64a47940cc94ac79fefda001 (patch) | |
tree | f4ff18d65f94f6bd76e4b6c62281f4ece02ec4a7 /databases | |
parent | 4d1cda61d99baad5c2432dc90824374490ec2c23 (diff) | |
download | freebsd-ports-gnome-50606be8a576784f64a47940cc94ac79fefda001.tar.gz freebsd-ports-gnome-50606be8a576784f64a47940cc94ac79fefda001.tar.zst freebsd-ports-gnome-50606be8a576784f64a47940cc94ac79fefda001.zip |
Switch to use daemon(8) in rc script to avoid keeping a tty open.
Submitted by: koitsu, ed
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mysql50-server/Makefile | 2 | ||||
-rw-r--r-- | databases/mysql50-server/files/mysql-server.sh.in | 4 | ||||
-rw-r--r-- | databases/mysql51-server/Makefile | 2 | ||||
-rw-r--r-- | databases/mysql51-server/files/mysql-server.sh.in | 4 | ||||
-rw-r--r-- | databases/mysql55-server/Makefile | 2 | ||||
-rw-r--r-- | databases/mysql55-server/files/mysql-server.sh.in | 4 | ||||
-rw-r--r-- | databases/percona55-server/Makefile | 2 | ||||
-rw-r--r-- | databases/percona55-server/files/mysql-server.sh.in | 4 |
8 files changed, 12 insertions, 12 deletions
diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile index 952650b05cc8..e43c4cbb610b 100644 --- a/databases/mysql50-server/Makefile +++ b/databases/mysql50-server/Makefile @@ -7,7 +7,7 @@ PORTNAME?= mysql PORTVERSION= 5.0.90 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_MYSQL} MASTER_SITE_SUBDIR= MySQL-5.0 diff --git a/databases/mysql50-server/files/mysql-server.sh.in b/databases/mysql50-server/files/mysql-server.sh.in index 4b70f5880ca6..bda724adbae1 100644 --- a/databases/mysql50-server/files/mysql-server.sh.in +++ b/databases/mysql50-server/files/mysql-server.sh.in @@ -38,8 +38,8 @@ load_rc_config $name mysql_user="mysql" mysql_limits_args="-e -U ${mysql_user}" pidfile="${mysql_dbdir}/`/bin/hostname`.pid" -command="%%PREFIX%%/bin/mysqld_safe" -command_args="--defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --socket=${mysql_socket} --pid-file=${pidfile} ${mysql_args} > /dev/null 2>&1 &" +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} --socket=${mysql_socket} --pid-file=${pidfile} ${mysql_args}" procname="%%PREFIX%%/libexec/mysqld" start_precmd="${name}_prestart" start_postcmd="${name}_poststart" diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile index a0193ac2d9d7..97994578da97 100644 --- a/databases/mysql51-server/Makefile +++ b/databases/mysql51-server/Makefile @@ -7,7 +7,7 @@ PORTNAME?= mysql PORTVERSION= 5.1.51 -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 305db44dc57b..eb7abb96fee3 100644 --- a/databases/mysql51-server/files/mysql-server.sh.in +++ b/databases/mysql51-server/files/mysql-server.sh.in @@ -35,8 +35,8 @@ load_rc_config $name mysql_user="mysql" mysql_limits_args="-e -U ${mysql_user}" pidfile="${mysql_dbdir}/`/bin/hostname`.pid" -command="%%PREFIX%%/bin/mysqld_safe" -command_args="--defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} > /dev/null 2>&1 &" +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" start_precmd="${name}_prestart" start_postcmd="${name}_poststart" diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile index 9d6dd5ee35e0..b9839bde97cf 100644 --- a/databases/mysql55-server/Makefile +++ b/databases/mysql55-server/Makefile @@ -7,7 +7,7 @@ PORTNAME?= mysql PORTVERSION= 5.5.6 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= databases ipv6 MASTER_SITES= ${MASTER_SITE_MYSQL} MASTER_SITE_SUBDIR= MySQL-5.5 diff --git a/databases/mysql55-server/files/mysql-server.sh.in b/databases/mysql55-server/files/mysql-server.sh.in index 305db44dc57b..eb7abb96fee3 100644 --- a/databases/mysql55-server/files/mysql-server.sh.in +++ b/databases/mysql55-server/files/mysql-server.sh.in @@ -35,8 +35,8 @@ load_rc_config $name mysql_user="mysql" mysql_limits_args="-e -U ${mysql_user}" pidfile="${mysql_dbdir}/`/bin/hostname`.pid" -command="%%PREFIX%%/bin/mysqld_safe" -command_args="--defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} > /dev/null 2>&1 &" +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" start_precmd="${name}_prestart" start_postcmd="${name}_poststart" diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile index 9d6dd5ee35e0..b9839bde97cf 100644 --- a/databases/percona55-server/Makefile +++ b/databases/percona55-server/Makefile @@ -7,7 +7,7 @@ PORTNAME?= mysql PORTVERSION= 5.5.6 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= databases ipv6 MASTER_SITES= ${MASTER_SITE_MYSQL} MASTER_SITE_SUBDIR= MySQL-5.5 diff --git a/databases/percona55-server/files/mysql-server.sh.in b/databases/percona55-server/files/mysql-server.sh.in index 305db44dc57b..eb7abb96fee3 100644 --- a/databases/percona55-server/files/mysql-server.sh.in +++ b/databases/percona55-server/files/mysql-server.sh.in @@ -35,8 +35,8 @@ load_rc_config $name mysql_user="mysql" mysql_limits_args="-e -U ${mysql_user}" pidfile="${mysql_dbdir}/`/bin/hostname`.pid" -command="%%PREFIX%%/bin/mysqld_safe" -command_args="--defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} > /dev/null 2>&1 &" +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" start_precmd="${name}_prestart" start_postcmd="${name}_poststart" |