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