Bug 91319 - Update port: news/newscache , Added rc script
Summary: Update port: news/newscache , Added rc 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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-04 20:50 UTC by Arjan Koole
Modified: 2006-01-04 21:49 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arjan Koole 2006-01-04 20:50:07 UTC
	news/newscache is lacking an rc script, so I hacked this one up

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"
How-To-Repeat: 	Install the port
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-01-04 21:48:59 UTC
State Changed
From-To: open->closed

Committed, thanks!