ports/70295: Port net/nylon - startup script

Rob MacGregor rob.macgregor at techie.com
Wed Aug 11 10:10:33 UTC 2004


>Number:         70295
>Category:       ports
>Synopsis:       Port net/nylon - startup script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 11 10:10:32 GMT 2004
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list