pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/mariadb55-server Disassociate from controlli...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/57f7befeb6ae
branches:  trunk
changeset: 364623:57f7befeb6ae
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sat Jul 01 23:57:46 2017 +0000

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

diffstat:

 databases/mariadb55-server/Makefile        |  3 ++-
 databases/mariadb55-server/files/mysqld.sh |  6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r ad30a1f0d565 -r 57f7befeb6ae databases/mariadb55-server/Makefile
--- a/databases/mariadb55-server/Makefile       Sat Jul 01 23:02:34 2017 +0000
+++ b/databases/mariadb55-server/Makefile       Sat Jul 01 23:57:46 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2016/09/13 19:15:14 maya Exp $
+# $NetBSD: Makefile,v 1.5 2017/07/01 23:57:46 schmonz Exp $
 
 PKGNAME=       ${DISTNAME:S/-/-server-/}
+PKGREVISION=   1
 COMMENT=       MariaDB 5.5, a free SQL database (server)
 
 CONFLICTS=     mysql3-server-[0-9]*
diff -r ad30a1f0d565 -r 57f7befeb6ae databases/mariadb55-server/files/mysqld.sh
--- a/databases/mariadb55-server/files/mysqld.sh        Sat Jul 01 23:02:34 2017 +0000
+++ b/databases/mariadb55-server/files/mysqld.sh        Sat Jul 01 23:57:46 2017 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mysqld.sh,v 1.1 2015/04/16 20:21:19 ryoon Exp $
+# $NetBSD: mysqld.sh,v 1.2 2017/07/01 23:57:46 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' \
                   &
 }
 



Home | Main Index | Thread Index | Old Index