pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases Disassociate from controlling terminal (usin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a1de183a579e
branches:  trunk
changeset: 364444:a1de183a579e
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sat Jun 24 15:18:42 2017 +0000

description:
Disassociate from controlling terminal (using Perl, already a
dependency) and run the logger as ${mysqld_user}, not root.
Bump PKGREVISIONs.

diffstat:

 databases/mysql51-server/Makefile        |  3 ++-
 databases/mysql51-server/files/mysqld.sh |  6 +++---
 databases/mysql55-server/Makefile        |  3 ++-
 databases/mysql55-server/files/mysqld.sh |  6 +++---
 databases/mysql56-server/Makefile        |  3 ++-
 databases/mysql56-server/files/mysqld.sh |  6 +++---
 databases/mysql57-server/Makefile        |  4 ++--
 databases/mysql57-server/files/mysqld.sh |  6 +++---
 8 files changed, 20 insertions(+), 17 deletions(-)

diffs (145 lines):

diff -r 1146ee976fc0 -r a1de183a579e databases/mysql51-server/Makefile
--- a/databases/mysql51-server/Makefile Sat Jun 24 14:27:10 2017 +0000
+++ b/databases/mysql51-server/Makefile Sat Jun 24 15:18:42 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.29 2017/04/13 13:44:49 mef Exp $
+# $NetBSD: Makefile,v 1.30 2017/06/24 15:18:42 schmonz Exp $
 
 PKGNAME=       ${DISTNAME:S/-/-server-/}
+PKGREVISION=   1
 COMMENT=       MySQL 5, a free SQL database (server)
 
 CONFLICTS=             mysql3-server-[0-9]*
diff -r 1146ee976fc0 -r a1de183a579e databases/mysql51-server/files/mysqld.sh
--- a/databases/mysql51-server/files/mysqld.sh  Sat Jun 24 14:27:10 2017 +0000
+++ b/databases/mysql51-server/files/mysqld.sh  Sat Jun 24 15:18:42 2017 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mysqld.sh,v 1.3 2014/12/05 17:22:15 schmonz Exp $
+# $NetBSD: mysqld.sh,v 1.4 2017/06/24 15:18:42 schmonz Exp $
 #
 # PROVIDE: mysqld
 # REQUIRE: DAEMON LOGIN mountall
@@ -81,10 +81,10 @@
        @ECHO@ "Starting ${name}."
        ulimit -n 4096
        cd @PREFIX@
-       ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
+       @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
                   --pid-file=${mysqld_pidfile} ${mysqld_flags} \
                   ${thread_flags} \
-                  2>&1 | logger -t nbmysqld_safe \
+                  2>&1 | @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' @SU@ -m ${mysqld_user} -c 'logger -t nbmysqld_safe' \
                   &
 }
 
diff -r 1146ee976fc0 -r a1de183a579e databases/mysql55-server/Makefile
--- a/databases/mysql55-server/Makefile Sat Jun 24 14:27:10 2017 +0000
+++ b/databases/mysql55-server/Makefile Sat Jun 24 15:18:42 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2016/04/18 10:01:16 adam Exp $
+# $NetBSD: Makefile,v 1.32 2017/06/24 15:18:42 schmonz Exp $
 
 PKGNAME=       ${DISTNAME:S/-/-server-/}
+PKGREVISION=   1
 COMMENT=       MySQL 5, a free SQL database (server)
 
 CONFLICTS=     mysql3-server-[0-9]*
diff -r 1146ee976fc0 -r a1de183a579e databases/mysql55-server/files/mysqld.sh
--- a/databases/mysql55-server/files/mysqld.sh  Sat Jun 24 14:27:10 2017 +0000
+++ b/databases/mysql55-server/files/mysqld.sh  Sat Jun 24 15:18:42 2017 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mysqld.sh,v 1.3 2014/12/05 17:22:16 schmonz Exp $
+# $NetBSD: mysqld.sh,v 1.4 2017/06/24 15:18:42 schmonz Exp $
 #
 # PROVIDE: mysqld
 # REQUIRE: DAEMON LOGIN mountall
@@ -75,10 +75,10 @@
        @ECHO@ "Starting ${name}."
        ulimit -n 4096
        cd @PREFIX@
-       ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
+       @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
                   --pid-file=${mysqld_pidfile} ${mysqld_flags} \
                   ${thread_flags} \
-                  2>&1 | logger -t nbmysqld_safe \
+                  2>&1 | @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' @SU@ -m ${mysqld_user} -c 'logger -t nbmysqld_safe' \
                   &
 }
 
diff -r 1146ee976fc0 -r a1de183a579e databases/mysql56-server/Makefile
--- a/databases/mysql56-server/Makefile Sat Jun 24 14:27:10 2017 +0000
+++ b/databases/mysql56-server/Makefile Sat Jun 24 15:18:42 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2016/09/08 09:38:08 abs Exp $
+# $NetBSD: Makefile,v 1.32 2017/06/24 15:18:42 schmonz Exp $
 
 PKGNAME=       ${DISTNAME:S/-/-server-/}
+PKGREVISION=   1
 COMMENT=       MySQL 5, a free SQL database (server)
 
 CONFLICTS=     mysql3-server-[0-9]*
diff -r 1146ee976fc0 -r a1de183a579e databases/mysql56-server/files/mysqld.sh
--- a/databases/mysql56-server/files/mysqld.sh  Sat Jun 24 14:27:10 2017 +0000
+++ b/databases/mysql56-server/files/mysqld.sh  Sat Jun 24 15:18:42 2017 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mysqld.sh,v 1.3 2014/12/05 17:22:16 schmonz Exp $
+# $NetBSD: mysqld.sh,v 1.4 2017/06/24 15:18:42 schmonz Exp $
 #
 # PROVIDE: mysqld
 # REQUIRE: DAEMON LOGIN mountall
@@ -74,10 +74,10 @@
        @ECHO@ "Starting ${name}."
        ulimit -n 4096
        cd @PREFIX@
-       ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
+       @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
                   --pid-file=${mysqld_pidfile} ${mysqld_flags} \
                   ${thread_flags} \
-                  2>&1 | logger -t nbmysqld_safe \
+                  2>&1 | @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' @SU@ -m ${mysqld_user} -c 'logger -t nbmysqld_safe' \
                   &
 }
 
diff -r 1146ee976fc0 -r a1de183a579e databases/mysql57-server/Makefile
--- a/databases/mysql57-server/Makefile Sat Jun 24 14:27:10 2017 +0000
+++ b/databases/mysql57-server/Makefile Sat Jun 24 15:18:42 2017 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2017/04/30 01:21:31 ryoon Exp $
+# $NetBSD: Makefile,v 1.7 2017/06/24 15:18:42 schmonz Exp $
 
 PKGNAME=       ${DISTNAME:S/-/-server-/}
-PKGREVISION=   1
+PKGREVISION=   2
 COMMENT=       MySQL 5, a free SQL database (server)
 
 CONFLICTS=     mysql3-server-[0-9]*
diff -r 1146ee976fc0 -r a1de183a579e databases/mysql57-server/files/mysqld.sh
--- a/databases/mysql57-server/files/mysqld.sh  Sat Jun 24 14:27:10 2017 +0000
+++ b/databases/mysql57-server/files/mysqld.sh  Sat Jun 24 15:18:42 2017 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mysqld.sh,v 1.1 2016/09/16 06:49:12 adam Exp $
+# $NetBSD: mysqld.sh,v 1.2 2017/06/24 15:18:42 schmonz Exp $
 #
 # PROVIDE: mysqld
 # REQUIRE: DAEMON LOGIN mountall
@@ -74,10 +74,10 @@
        @ECHO@ "Starting ${name}."
        ulimit -n 4096
        cd @PREFIX@
-       ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
+       @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
                   --pid-file=${mysqld_pidfile} ${mysqld_flags} \
                   ${thread_flags} \
-                  2>&1 | logger -t nbmysqld_safe \
+                  2>&1 | @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' @SU@ -m ${mysqld_user} -c 'logger -t nbmysqld_safe' \
                   &
 }
 



Home | Main Index | Thread Index | Old Index