ports/91319: Update port: news/newscache , Added rc script
Arjan Koole
arjan at blackoak.net
Wed Jan 4 20:50:09 UTC 2006
>Number: 91319
>Category: ports
>Synopsis: Update port: news/newscache , Added rc script
>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: Wed Jan 04 20:50:07 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Arjan Koole
>Release: FreeBSD 6.0-STABLE i386
>Organization:
Blackoak
>Environment:
System: FreeBSD medusa.blackoak.net 6.0-STABLE FreeBSD 6.0-STABLE #0: Sun Nov 6 11:49:28 CET 2005 root at medusa.blackoak.net:/usr/obj/usr/src/sys/MEDUSA i386
>Description:
news/newscache is lacking an rc script, so I hacked this one up
>How-To-Repeat:
Install the port
>Fix:
#!/bin/sh
#
# $FreeBSD: ports/news/newscache/files/newscache.sh.sample,v 1.0 2006/01/03 08:17:07 arjan Exp $
#
# PROVIDE: newscache
# REQUIRE: DAEMON
# KEYWORD: FreeBSD
#
# Add the following line to /etc/rc.conf to enable newscache:
#
# newscache_enable="YES"
#
newscache_enable=${newscache_enable-"NO"}
newscache_flags=${newscache_flags-""}
. /etc/rc.subr
name=newscache
rcvar=`set_rcvar`
command=/usr/local/sbin/${name}
pidfile=/var/run/${name}.pid
sig_stop=-KILL
load_rc_config ${name}
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list