freebsd-ports/net-mgmt/openvmps/files/vmpsd.in
Chris Rees 8d9d094172 Fix rc file order to respect defaults correctly, style nits and stop
calling test where expressions will do.

Feature safe:	yes
2012-11-10 15:58:37 +00:00

29 lines
550 B
Bash

#!/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