diff options
author | Gustavo Felisberto <humpback@gentoo.org> | 2004-03-16 19:10:30 +0000 |
---|---|---|
committer | Gustavo Felisberto <humpback@gentoo.org> | 2004-03-16 19:10:30 +0000 |
commit | 25e158eb9532c5d60ec1751dd585ae7df3af0a67 (patch) | |
tree | a34630c8f2916429e8700a19512e773e9c64d7fa /net-im | |
parent | stable on sparc (Manifest recommit) (diff) | |
download | gentoo-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.init | 19 | ||||
-rw-r--r-- | net-im/msn-transport/files/msnt.xml | 2 |
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> |