Bug 70295 - Port net/nylon - startup script
Summary: Port net/nylon - startup script
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Volker Stolz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-11 11:10 UTC by Rob MacGregor
Modified: 2004-08-11 14:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob MacGregor 2004-08-11 11:10:32 UTC
New style startup script for the net/nylon port.

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"
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-08-11 14:04:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vs

I'll handle this
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2004-08-11 14:12:06 UTC
State Changed
From-To: open->closed

Committed with modifications, thanks! 
(Some path-mangling is req'd on 4.X)