summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/mu-conference/files/mu-conference-0.7.init')
-rw-r--r--net-im/mu-conference/files/mu-conference-0.7.init25
1 files changed, 25 insertions, 0 deletions
diff --git a/net-im/mu-conference/files/mu-conference-0.7.init b/net-im/mu-conference/files/mu-conference-0.7.init
new file mode 100644
index 000000000000..20400acb9a3f
--- /dev/null
+++ b/net-im/mu-conference/files/mu-conference-0.7.init
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ ebegin "Starting MUC Jabber Transport"
+ start-stop-daemon \
+ --background \
+ --start \
+ --user jabber:jabber \
+ --exec /usr/bin/mu-conference \
+ -- -c /etc/jabber/mu-conference.xml
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping MUC Jabber Transport"
+ start-stop-daemon \
+ --stop \
+ --pidfile /var/run/jabber/mu-conference.pid
+ eend $?
+}