aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/openvmps/files/vmpsd.in
blob: eabc84be6da3de63956f82ca0d75a33de445811d (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
29
#!/bin/sh

# $FreeBSD$

# PROVIDE: vmpsd
# REQUIRE: DAEMON
# KEYWORD: shutdown

. /etc/rc.subr

name=vmpsd
rcvar=vmpsd_enable

load_rc_config $name

# Define these vmpsd_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#       /etc/rc.conf.d/vmpsd
# 
# DO NOT CHANGE THESE DEFAULT VALUES HERE 

: ${vmpsd_enable:=NO}               # Enable vmpsd
: ${vmpsd_program:=%%PREFIX%%/sbin/vmpsd}   # Location of vmpsd
: ${vmpsd_flags=-f /usr/local/etc/vmps.db}  # Flags to vmpsd program

command=%%PREFIX%%/sbin/${name}

run_rc_command $1