View previous topic :: View next topic |
Author |
Message |
smg Veteran
Joined: 13 Aug 2004 Posts: 1402 Location: /home/stephan
|
Posted: Fri Feb 10, 2006 11:38 pm Post subject: jabberd does not come up |
|
|
hello,
after a crash on my server yesterday jabberd seems not to work anymore.. i reemerged it also..
Code: | /etc/init.d/jabber start
* Re-caching dependency info (mtimes differ)...
* Starting Jabber Server ... [ ok ]
stephan init.d # 20060210T23:36:43: [notice] (-internal): initializing server
20060210T23:36:43: [alert] (-internal): io_select unable to listen on 5223 [217.160.135.41]: jabberd already running or invalid interface?
20060210T23:36:43: [alert] (-internal): io_select unable to listen on 5269 [217.160.135.41]: jabberd already running or invalid interface?
stephan init.d # netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 5570/svnserve
tcp 0 0 0.0.0.0:6667 0.0.0.0:* LISTEN 5358/bitlbeed
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5316/apache2
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 5691/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 5289/sshd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 5316/apache2 |
stephan init.d # /etc/init.d/jabber start
* Starting Jabber Server ...
/etc/init.d/jabber: line 14: [: too many arguments
/usr/sbin/jabberd already running.
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/files/jabber.rc6-r8,v 1.1 2005/05/21 18:35:51 humpback Exp $
depend() {
need net
provide jabber-server
}
start() {
ebegin "Starting Jabber Server"
if [ -f ${JPIDFILE} ]; then
if [ -z $(ps ax | grep `cat ${JPIDFILE}` | grep -v grep ) ]
then
rm -f ${JPIDFILE}
fi
fi
start-stop-daemon --start -c jabber:jabber \
-x /usr/sbin/jabberd -- -B -c /etc/jabber/multiple.xml
eend $?
}
stop() {
ebegin "Stopping Jabber Server"
start-stop-daemon --stop -x /usr/sbin/jabberd
kill `cat ${JPIDFILE}`
sleep 2
if [ -f ${JPIDFILE} ]; then
kill -9 `cat ${JPIDFILE}`
rm -f ${JPIDFILE}
fi
eend $?
} _________________ GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code: | perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);' |
|
|
Back to top |
|
|
Su8l1me n00b
Joined: 25 Jan 2006 Posts: 31
|
Posted: Mon Aug 14, 2006 1:02 pm Post subject: |
|
|
That problem is symptomatic of you having re-emerged it with the ipv6 USE flag enabled. Do it again without that flag enabled and you should be good to go. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Mon Aug 14, 2006 7:42 pm Post subject: Re: jabberd does not come up |
|
|
smg wrote: | /etc/init.d/jabber: line 14: [: too many arguments
/usr/sbin/jabberd already running. |
So, look at line 14. Remove the pidfile.
The initscript isn't reliable. I provided a patch ages ago for the stop part. |
|
Back to top |
|
|
|