summaryrefslogtreecommitdiff
path: root/chat/jabberd2
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2008-03-08 22:20:02 +0000
committergdt <gdt@pkgsrc.org>2008-03-08 22:20:02 +0000
commit2b5e0fb6e44d3b151c26b59b07f0d6ec308eabfb (patch)
tree61e8642dcae571cdd4a3c17063de8e5ad5d54608 /chat/jabberd2
parent084e52bdb4fecf6ddb61817c12ff8c022106a48f (diff)
downloadpkgsrc-2b5e0fb6e44d3b151c26b59b07f0d6ec308eabfb.tar.gz
On NetBSD 4 with xen/i386, startup at boot fails, with sm not
connecting to something. Putting 'sleep 5' in sm's rc.d script resolves the problem. (The right fix is to for all programs to ensure that they are ready to provide all defined services before the top-level command exits, but that's much harder.) PKGREVISION++.
Diffstat (limited to 'chat/jabberd2')
-rw-r--r--chat/jabberd2/Makefile3
-rwxr-xr-xchat/jabberd2/files/sm.sh4
2 files changed, 5 insertions, 2 deletions
diff --git a/chat/jabberd2/Makefile b/chat/jabberd2/Makefile
index a7135aecd34..934a4341329 100644
--- a/chat/jabberd2/Makefile
+++ b/chat/jabberd2/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.44 2008/02/20 14:33:04 xtraeme Exp $
+# $NetBSD: Makefile,v 1.45 2008/03/08 22:20:02 gdt Exp $
#
DISTNAME= jabberd-2.1.23
+PKGREVISION= 1
CATEGORIES= chat
MASTER_SITES= http://ftp.xiaoka.com/jabberd2/releases/
EXTRACT_SUFX= .tar.bz2
diff --git a/chat/jabberd2/files/sm.sh b/chat/jabberd2/files/sm.sh
index e7f7c090558..ff00f569f98 100755
--- a/chat/jabberd2/files/sm.sh
+++ b/chat/jabberd2/files/sm.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: sm.sh,v 1.2 2004/06/26 11:21:46 abs Exp $
+# $NetBSD: sm.sh,v 1.3 2008/03/08 22:20:02 gdt Exp $
#
# PROVIDE: sm
# REQUIRE: DAEMON c2s
@@ -35,6 +35,8 @@ remove_pidfile()
if [ -f /etc/rc.subr ]; then
load_rc_config $name
+ # XXX Previous commands seem to complete but not be ready.
+ sleep 5
run_rc_command "$1"
else
@ECHO@ -n " ${name}"