mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
6b357e5cd1
- install rc script via USE_RC_SUBR - pet portlint a little - bump PORTREVISION Submitted by: marck@ (maintainer) Prompted by: QA Tindy run
48 lines
647 B
Bash
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"
|