From nobody@FreeBSD.org  Wed Aug 11 10:10:06 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3205F16A4CF
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Aug 2004 10:10:06 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 268FE43D3F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Aug 2004 10:10:06 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7BAA50B012169
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Aug 2004 10:10:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i7BAA53d012168;
	Wed, 11 Aug 2004 10:10:05 GMT
	(envelope-from nobody)
Message-Id: <200408111010.i7BAA53d012168@www.freebsd.org>
Date: Wed, 11 Aug 2004 10:10:05 GMT
From: Rob MacGregor <rob.macgregor@techie.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Port net/nylon - startup script
X-Send-Pr-Version: www-2.3

>Number:         70295
>Category:       ports
>Synopsis:       Port net/nylon - startup script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    vs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 11 10:10:32 GMT 2004
>Closed-Date:    Wed Aug 11 13:12:49 GMT 2004
>Last-Modified:  Wed Aug 11 13:12:49 GMT 2004
>Originator:     Rob MacGregor
>Release:        5.2-CURRENT
>Organization:
>Environment:
FreeBSD autumn.storm 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Tue Apr  6 13:14:23 BST 2004     root@autumn.storm:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
New style startup script for the net/nylon port.
>How-To-Repeat:
      
>Fix:
Script follows (also at http://macgregor.myby.co.uk/nylon.sh if this gets mangled)

#!/bin/sh
#

# PROVIDE: nylon
# REQUIRE: LOGIN
# KEYWORD: FreeBSD shutdown

#
# Add the following lines to /etc/rc.conf to enable nylon:
#
#nylon_enable="YES"
#
# See nylon(1) for flags
#

. /etc/rc.subr

name=nylon
rcvar=`set_rcvar`

command=/usr/local/bin/nylon

stop_postcmd=stop_postcmd

stop_postcmd()
{
  rm -f $pidfile
}

# set defaults

nylon_enable=${nylon_enable:-"NO"}
nylon_flags=${nylon_flags:-"-s"}

load_rc_config $name
run_rc_command "$1"

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->vs 
Responsible-Changed-By: vs 
Responsible-Changed-When: Wed Aug 11 13:04:15 GMT 2004 
Responsible-Changed-Why:  
I'll handle this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70295 
State-Changed-From-To: open->closed 
State-Changed-By: vs 
State-Changed-When: Wed Aug 11 13:12:06 GMT 2004 
State-Changed-Why:  
Committed with modifications, thanks! 
(Some path-mangling is req'd on 4.X) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70295 
>Unformatted:
