aboutsummaryrefslogtreecommitdiff
path: root/sysutils/powerman/files/powerman.in
blob: 6089e5e77f430dc6b24b050c422d738f0b0a652e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

# 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"