summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Felisberto <humpback@gentoo.org>2004-07-09 17:56:59 +0000
committerGustavo Felisberto <humpback@gentoo.org>2004-07-09 17:56:59 +0000
commit45a4973d01ba369e816644aeaa502c82c69ad837 (patch)
tree417c551a632718edc5a88a2f7dc7484ce82555e2 /net-im/aim-transport
parentAdded to ~ppc. (Manifest recommit) (diff)
downloadgentoo-2-45a4973d01ba369e816644aeaa502c82c69ad837.tar.gz
gentoo-2-45a4973d01ba369e816644aeaa502c82c69ad837.tar.bz2
gentoo-2-45a4973d01ba369e816644aeaa502c82c69ad837.zip
small correction to init versions
Diffstat (limited to 'net-im/aim-transport')
-rw-r--r--net-im/aim-transport/files/aim-transport.init24
-rw-r--r--net-im/aim-transport/files/aim-transport.init-r233
2 files changed, 40 insertions, 17 deletions
diff --git a/net-im/aim-transport/files/aim-transport.init b/net-im/aim-transport/files/aim-transport.init
index a90427da5617..cb1bc57a3c5b 100644
--- a/net-im/aim-transport/files/aim-transport.init
+++ b/net-im/aim-transport/files/aim-transport.init
@@ -7,27 +7,17 @@ depend() {
start() {
ebegin "Starting AIM 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
+ /usr/sbin/jabberd -B -c /etc/jabber/aimtrans.xml -H /var/spool/jabber >/dev/null 2>&1
eend $?
}
stop() {
ebegin "Stoping AIM 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}
+ kill `cat /var/log/jabber/aim.pid`
+ sleep 2
+ if [ -f /var/log/jabber/aim.pid ]; then
+ kill -9 `cat /var/log/jabber/aim.pid`
+ rm -f /var/log/jabber/aim.pid
+ fi
eend $?
}
diff --git a/net-im/aim-transport/files/aim-transport.init-r2 b/net-im/aim-transport/files/aim-transport.init-r2
new file mode 100644
index 000000000000..a90427da5617
--- /dev/null
+++ b/net-im/aim-transport/files/aim-transport.init-r2
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ ebegin "Starting AIM 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 AIM 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 $?
+}