summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorGustavo Felisberto <humpback@gentoo.org>2004-03-16 19:10:30 +0000
committerGustavo Felisberto <humpback@gentoo.org>2004-03-16 19:10:30 +0000
commit25e158eb9532c5d60ec1751dd585ae7df3af0a67 (patch)
treea34630c8f2916429e8700a19512e773e9c64d7fa /net-im
parentstable on sparc (Manifest recommit) (diff)
downloadgentoo-2-25e158eb9532c5d60ec1751dd585ae7df3af0a67.tar.gz
gentoo-2-25e158eb9532c5d60ec1751dd585ae7df3af0a67.tar.bz2
gentoo-2-25e158eb9532c5d60ec1751dd585ae7df3af0a67.zip
Initial work on bug 43851
Diffstat (limited to 'net-im')
-rw-r--r--net-im/msn-transport/files/msn-transport.init19
-rw-r--r--net-im/msn-transport/files/msnt.xml2
2 files changed, 20 insertions, 1 deletions
diff --git a/net-im/msn-transport/files/msn-transport.init b/net-im/msn-transport/files/msn-transport.init
new file mode 100644
index 000000000000..18d2e954d5cc
--- /dev/null
+++ b/net-im/msn-transport/files/msn-transport.init
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ jabberd -B -c /etc/jabber/msnt.xml -H /var/spool/jabber >/dev/null 2>&1
+}
+
+stop() {
+ kill `cat /var/log/jabber/msnt.pid`
+ sleep 2
+ if ( -f /var/log/jabber/msnt.pid ); then
+ kill -9 `cat /var/log/jabber/msnt.pid`
+ rm -f /var/log/jabber/msnt.pid
+ fi
+}
diff --git a/net-im/msn-transport/files/msnt.xml b/net-im/msn-transport/files/msnt.xml
index 41e60f48bfc4..e61955e7045f 100644
--- a/net-im/msn-transport/files/msnt.xml
+++ b/net-im/msn-transport/files/msnt.xml
@@ -102,5 +102,5 @@
<secret>test</secret>
</connect>
</service>
-
+<pidfile>/var/log/jabber/msnt.pid</pidfile>
</jabber>