freebsd-ports/sysutils/powerman/files/powerman.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

29 lines
559 B
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: powermand
# REQUIRE: NETWORKING
# BEFORE: LOGIN
# KEYWORD: shutdown
# Define these powermand_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/powermand
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
# powermand_enable="YES"
# powermand_flags="<set as needed>"
powermand_enable=${powermand_enable:-"NO"}
. /etc/rc.subr
name="powermand"
rcvar=powermand_enable
command="%%PREFIX%%/sbin/powermand"
required_files="%%PREFIX%%/etc/powerman.conf"
load_rc_config $name
run_rc_command "$1"