1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/www/oops/files/oops.in
Ion-Mihai Tetcu 6b357e5cd1 - fix plist for -DNOPORTDOCS
- install rc script via USE_RC_SUBR
- pet portlint a little
- bump PORTREVISION

Submitted by:	marck@ (maintainer)
Prompted by:	QA Tindy run
2008-06-29 09:53:47 +00:00

48 lines
647 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: oops
# REQUIRE: DAEMON
. "%%RC_SUBR%%"
name="oops"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/oopsctl"
procname="%%PREFIX%%/sbin/oops"
pidfile="/var/run/oops/oops.pid"
required_files="%%PREFIX%%/etc/oops/oops.cfg"
required_dirs="/var/run/oops"
extra_commands="reconfig rotate"
start_cmd="start_cmd"
stop_cmd="stop_cmd"
reconfig_cmd="reconfig_cmd"
rotate_cmd="rotate_cmd"
start_cmd() {
${command} start 2>&1 > /dev/null
}
stop_cmd() {
${command} stop
}
reconfig_cmd() {
${command} reconfigure
}
rotate_cmd() {
${command} rotate
}
load_rc_config "oops"
: ${oops_enable="NO"}
run_rc_command "$1"