summaryrefslogtreecommitdiff
path: root/net-mgmt/openvmps/files/vmpsd.in
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/openvmps/files/vmpsd.in')
-rw-r--r--net-mgmt/openvmps/files/vmpsd.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-mgmt/openvmps/files/vmpsd.in b/net-mgmt/openvmps/files/vmpsd.in
new file mode 100644
index 000000000000..b2ec03358d07
--- /dev/null
+++ b/net-mgmt/openvmps/files/vmpsd.in
@@ -0,0 +1,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