pkgsrc-Changes archive

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

CVS commit: pkgsrc/databases/mariadb55-server



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Sat Jul  1 23:57:46 UTC 2017

Modified Files:
        pkgsrc/databases/mariadb55-server: Makefile
        pkgsrc/databases/mariadb55-server/files: mysqld.sh

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


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/databases/mariadb55-server/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/databases/mariadb55-server/files/mysqld.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/mariadb55-server/Makefile
diff -u pkgsrc/databases/mariadb55-server/Makefile:1.4 pkgsrc/databases/mariadb55-server/Makefile:1.5
--- pkgsrc/databases/mariadb55-server/Makefile:1.4      Tue Sep 13 19:15:14 2016
+++ pkgsrc/databases/mariadb55-server/Makefile  Sat Jul  1 23:57:46 2017
@@ -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]*

Index: pkgsrc/databases/mariadb55-server/files/mysqld.sh
diff -u pkgsrc/databases/mariadb55-server/files/mysqld.sh:1.1 pkgsrc/databases/mariadb55-server/files/mysqld.sh:1.2
--- pkgsrc/databases/mariadb55-server/files/mysqld.sh:1.1       Thu Apr 16 20:21:19 2015
+++ pkgsrc/databases/mariadb55-server/files/mysqld.sh   Sat Jul  1 23:57:46 2017
@@ -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 @@ mysqld_start()
        @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