summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorschmonz <schmonz>2017-07-01 23:57:46 +0000
committerschmonz <schmonz>2017-07-01 23:57:46 +0000
commit5945a5a29fbf83b054ae6939388f0e3ed6382fc2 (patch)
treeb9206a45731fba819c2d33d8f0dfdb416039c455 /databases
parenta3d38886ffe517142f9631952d3b50fb8d4a1833 (diff)
downloadpkgsrc-5945a5a29fbf83b054ae6939388f0e3ed6382fc2.tar.gz
Disassociate from controlling terminal (using Perl, already a
dependency) and run the logger as ${mysqld_user}, not root. Bump PKGREVISION.
Diffstat (limited to 'databases')
-rw-r--r--databases/mariadb55-server/Makefile3
-rw-r--r--databases/mariadb55-server/files/mysqld.sh6
2 files changed, 5 insertions, 4 deletions
diff --git a/databases/mariadb55-server/Makefile b/databases/mariadb55-server/Makefile
index a973b61ae5a..5de60bf073c 100644
--- a/databases/mariadb55-server/Makefile
+++ b/databases/mariadb55-server/Makefile
@@ -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 --git a/databases/mariadb55-server/files/mysqld.sh b/databases/mariadb55-server/files/mysqld.sh
index 71564af6d55..feaaa31c3b4 100644
--- a/databases/mariadb55-server/files/mysqld.sh
+++ b/databases/mariadb55-server/files/mysqld.sh
@@ -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' \
&
}