From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Aug 24 18:20:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0275420C for ; Sat, 24 Aug 2013 18:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BD1FF2C19 for ; Sat, 24 Aug 2013 18:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7OIK00U042503 for ; Sat, 24 Aug 2013 18:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7OIK0rR042502; Sat, 24 Aug 2013 18:20:00 GMT (envelope-from gnats) Resent-Date: Sat, 24 Aug 2013 18:20:00 GMT Resent-Message-Id: <201308241820.r7OIK0rR042502@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tassilo Philipp Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E980CF8A for ; Sat, 24 Aug 2013 18:13:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D75A62BDF for ; Sat, 24 Aug 2013 18:13:37 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7OIDbCa075933 for ; Sat, 24 Aug 2013 18:13:37 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7OIDaEv075869; Sat, 24 Aug 2013 18:13:36 GMT (envelope-from nobody) Message-Id: <201308241813.r7OIDaEv075869@oldred.freebsd.org> Date: Sat, 24 Aug 2013 18:13:36 GMT From: Tassilo Philipp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181507: [PATCH] security/pks: fix autostart X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 18:20:01 -0000 >Number: 181507 >Category: ports >Synopsis: [PATCH] security/pks: fix autostart >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Aug 24 18:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Tassilo Philipp >Release: 9.1 RELEASE >Organization: >Environment: FreeBSD gallon 9.1-RC1 FreeBSD 9.1-RELEASE #0 r239187: Wed May 22 09:09:36 UTC 2013 root@gallon:/usr/obj/usr/src/sys/STOCKSY amd64 >Description: Default rc.d file fails to start pks on bootup. Manual 'service pksd start' seems to work, though. Patch is using daemon(8) to start pks. >How-To-Repeat: >Fix: Patch attached with submission follows: --- files/pksd.in.orig 2013-08-24 19:48:58.000000000 +0200 +++ files/pksd.in 2013-08-24 19:54:20.000000000 +0200 @@ -14,6 +14,7 @@ command_args="%%PREFIX%%/etc/${name}.conf &" required_files="%%PREFIX%%/etc/${name}.conf" start_precmd="pksd_precmd" +start_cmd="pksd_cmd" start_postcmd="pksd_runqueue" stop_command="pksd_clean_stop" @@ -31,6 +32,11 @@ fi } +pksd_cmd() +{ + daemon -f ${command} ${command_args} +} + pksd_runqueue() { if [ -x %%PREFIX%%/bin/${name} -a -x %%PREFIX%%/bin/pks-queue-run.sh ] >Release-Note: >Audit-Trail: >Unformatted: