diff options
author | Gustavo Felisberto <humpback@gentoo.org> | 2004-07-09 18:07:04 +0000 |
---|---|---|
committer | Gustavo Felisberto <humpback@gentoo.org> | 2004-07-09 18:07:04 +0000 |
commit | 84fde7ac29253030a595a37e0f38557af14b8dec (patch) | |
tree | 1d970d5bf8721c13d29edbd5f2b801a17309e828 /net-im/msn-transport/files | |
parent | Version bump for kernel attribute vulnerabilities, bug #56479. (Manifest reco... (diff) | |
download | gentoo-2-84fde7ac29253030a595a37e0f38557af14b8dec.tar.gz gentoo-2-84fde7ac29253030a595a37e0f38557af14b8dec.tar.bz2 gentoo-2-84fde7ac29253030a595a37e0f38557af14b8dec.zip |
fixed init script
----------------------------------------------------------------------
Diffstat (limited to 'net-im/msn-transport/files')
-rw-r--r-- | net-im/msn-transport/files/digest-msn-transport-20040531-r1 | 1 | ||||
-rw-r--r-- | net-im/msn-transport/files/msn-transport-conf.d | 9 | ||||
-rw-r--r-- | net-im/msn-transport/files/msn-transport.init-r2 | 33 |
3 files changed, 43 insertions, 0 deletions
diff --git a/net-im/msn-transport/files/digest-msn-transport-20040531-r1 b/net-im/msn-transport/files/digest-msn-transport-20040531-r1 new file mode 100644 index 000000000000..4d62a4371e6a --- /dev/null +++ b/net-im/msn-transport/files/digest-msn-transport-20040531-r1 @@ -0,0 +1 @@ +MD5 d9ab03d18659303bcd0b3871bee1aa6e msn-transport-2004-05-31.tar.gz 71985 diff --git a/net-im/msn-transport/files/msn-transport-conf.d b/net-im/msn-transport/files/msn-transport-conf.d new file mode 100644 index 000000000000..3f4a06c84e34 --- /dev/null +++ b/net-im/msn-transport/files/msn-transport-conf.d @@ -0,0 +1,9 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-im/msn-transport/files/msn-transport-conf.d,v 1.1 2004/07/09 18:07:04 humpback Exp $ + +CONFIG="/etc/jabber/msnt.xml" + +#Need to find a way to fix the "double" expansion +#PIDFILE= grep pid ${CONFIG} | sed -e 's/<[^>]*>//g' | sed s/' '//g +PIDFILE="/var/log/jabber/msnt.pid" diff --git a/net-im/msn-transport/files/msn-transport.init-r2 b/net-im/msn-transport/files/msn-transport.init-r2 new file mode 100644 index 000000000000..faf0e1d40996 --- /dev/null +++ b/net-im/msn-transport/files/msn-transport.init-r2 @@ -0,0 +1,33 @@ +#!/sbin/runscript + +depend() { + need net + use jabber-server +} + +start() { + ebegin "Starting MSN Jabber Transport" + if [ -f ${PIDFILE} ]; then + if [ -z $(ps ax | grep `cat ${PIDFILE}` | grep -v grep ) ] + then + rm -f ${PIDFILE} + fi + fi + + /usr/sbin/jabberd -B -c ${CONFIG} -H /var/spool/jabber >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stoping MSN Jabber Transport" + if [ -f ${PIDFILE} ]; then + kill `cat ${PIDFILE}` + fi + sleep 2 + if [ -f ${PIDFILE} ]; then + kill -9 `cat ${PIDFILE}` + rm -f ${PIDFILE} + fi + rm -f ${PIDFILE} + eend $? +} |