summaryrefslogtreecommitdiffstats
path: root/net/repeater/files/repeater.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/repeater/files/repeater.in')
-rw-r--r--net/repeater/files/repeater.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/net/repeater/files/repeater.in b/net/repeater/files/repeater.in
new file mode 100644
index 0000000..fa4ec55
--- /dev/null
+++ b/net/repeater/files/repeater.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# PROVIDE: repeater
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable repeater:
+#
+# repeater_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name=repeater
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+repeater_enable=${repeater_enable:-"NO"}
+repeater_server_port=${repeater_server_port:-5500}
+repeater_viewer_port=${repeater_viewer_port:-5900}
+repeater_log=${repeater_log:-"/var/run/repeater.log"}
+command=%%PREFIX%%/sbin/repeater
+start_precmd="echo Starting ${name}."
+start_cmd="daemon ${command} ${repeater_viewer_port} ${repeater_server_port} > ${repeater_log} 2>&1"
+
+run_rc_command "$1"
OpenPOWER on IntegriCloud