NetBSD Problem Report #52130
From www@NetBSD.org Sun Apr 2 20:14:49 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 820CC7A20E
for <gnats-bugs@gnats.NetBSD.org>; Sun, 2 Apr 2017 20:14:49 +0000 (UTC)
Message-Id: <20170402201448.63FF47A2A6@mollari.NetBSD.org>
Date: Sun, 2 Apr 2017 20:14:48 +0000 (UTC)
From: babafou+netbsd@babafou.eu.org
Reply-To: babafou+netbsd@babafou.eu.org
To: gnats-bugs@NetBSD.org
Subject: Patch to allow nginx pkg to start with configurable options
X-Send-Pr-Version: www-1.0
>Number: 52130
>Category: pkg
>Synopsis: Patch to allow nginx pkg to start with configurable options
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: joerg
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Apr 02 20:15:00 +0000 2017
>Last-Modified: Tue Apr 11 07:54:26 +0000 2017
>Originator: Marc Baudoin
>Release: pkgsrc-current
>Organization:
>Environment:
N/A
>Description:
I've modified the nginx start script to accept arguments that can be defined in rc.conf. Please consider including my patch in the source tree.
>How-To-Repeat:
>Fix:
--- /usr/pkg/share/examples/rc.d/nginx 2017-04-02 11:51:42.000000000 +0200
+++ /etc/rc.d/nginx 2017-04-02 22:03:28.000000000 +0200
@@ -11,6 +11,7 @@
rcvar=${name}
command="/usr/pkg/sbin/${name}"
required_files="/usr/pkg/etc/nginx/${name}.conf"
+rc_flags="-c ${required_files}"
pidfile="/var/run/${name}.pid"
start_precmd="ulimit -n 2048"
extra_commands="configtest reload"
@@ -22,7 +23,7 @@
warn "${required_files} does not exist."
return 1;
fi
- ${command} -t -c ${required_files}
+ ${command} -t ${rc_flags}
}
load_rc_config $name
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Tue, 11 Apr 2017 07:54:26 +0000
Responsible-Changed-Why:
Joerg, can you please give it a look? (over to MAINTAINER)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.