aboutsummaryrefslogtreecommitdiff
path: root/net-im/jggtrans/files/jggtrans.in
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/jggtrans/files/jggtrans.in')
-rw-r--r--net-im/jggtrans/files/jggtrans.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/net-im/jggtrans/files/jggtrans.in b/net-im/jggtrans/files/jggtrans.in
new file mode 100644
index 000000000000..2db822352d75
--- /dev/null
+++ b/net-im/jggtrans/files/jggtrans.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: jggtrans
+# REQUIRE: DAEMON %%JABBER_USER%%
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+# SET THEM IN THE /etc/rc.conf
+
+. /etc/rc.subr
+
+name="jggtrans"
+rcvar=jggtrans_enable
+
+load_rc_config $name
+
+: ${jggtrans_enable="NO"}
+: ${jggtrans_program="%%PREFIX%%/sbin/jggtrans"}
+: ${jggtrans_flags="-u %%JABBER_USER%% -g %%JABBER_USER%%"}
+: ${jggtrans_pidfile="/var/jabberd/pid/jggtrans.pid"}
+
+start_cmd="echo \"Starting ${name}.\"; /usr/bin/nice -5 ${jggtrans_program} ${jggtrans_flags}"
+
+run_rc_command "$1"