aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/netmagis-topo/files/toposendd.in
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/netmagis-topo/files/toposendd.in')
-rw-r--r--net-mgmt/netmagis-topo/files/toposendd.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/net-mgmt/netmagis-topo/files/toposendd.in b/net-mgmt/netmagis-topo/files/toposendd.in
new file mode 100644
index 000000000000..6dfde1681a6d
--- /dev/null
+++ b/net-mgmt/netmagis-topo/files/toposendd.in
@@ -0,0 +1,33 @@
+#! /bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: toposendd
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable toposendd:
+#
+# toposendd_enable="YES"
+#
+# # Optionnal variables:
+# toposendd_flags=""
+# toposendd_user="rancid"
+#
+
+. /etc/rc.subr
+
+name=toposendd
+rcvar=toposendd_enable
+
+load_rc_config $name
+
+: ${toposendd_enable:=NO}
+: ${toposendd_user:=rancid}
+
+command_interpreter=%%TCLSH%%
+command=%%PREFIX%%/sbin/toposendd
+
+run_rc_command $1