Date: Sat, 24 Aug 2013 18:13:36 GMT From: Tassilo Philipp <tphilipp@potion-studios.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/181507: [PATCH] security/pks: fix autostart Message-ID: <201308241813.r7OIDaEv075869@oldred.freebsd.org> Resent-Message-ID: <201308241820.r7OIK0rR042502@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308241813.r7OIDaEv075869>