summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/jit/files/jit-transport.init')
-rw-r--r--net-im/jit/files/jit-transport.init23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-im/jit/files/jit-transport.init b/net-im/jit/files/jit-transport.init
new file mode 100644
index 000000000000..8c82c7bf5de9
--- /dev/null
+++ b/net-im/jit/files/jit-transport.init
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ ebegin "Starting ICQ Jabber Transport"
+ /usr/sbin/jabberd -d -c /etc/jabber/jit.xml -H /var/spool/jabber >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping ICQ Jabber Transport"
+ kill `cat /var/log/jabber/jit.pid`
+ sleep 2
+ if ( -f /var/log/jabber/jit.pid ); then
+ kill -9 `cat /var/log/jabber/jit.pid`
+ rm -f /var/log/jabber/jit.pid
+ fi
+ eend $?
+}