pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38347: ejabberd doesn't start after reboot



>Number:         38347
>Category:       pkg
>Synopsis:       ejabberd doesn't start after reboot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 31 13:15:00 +0000 2008
>Originator:     Daniel Horecki
>Release:        4.0_STABLE
>Organization:
>Environment:
NetBSD myrkr.stars 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #1: Wed Mar 26 
21:32:24 CET 2008  
root%myrkr.stars@localhost:/usr/obj/sys/arch/i386/compile/GENERIC i386

>Description:
After installing ejabberd, starting service and then reboot, ejabberd can't 
start anymore. It can't create cookie file in /var/run/ejabberd/, since it 
doesn't exists after cleaning /var/run on start of the system. After reboot it 
is necessary to create that directory before starting ejabbberd.
>How-To-Repeat:
install ejabbberd, start it, then reboot and try to start it again.
>Fix:
Boot script can create directory if it doesn't exists. But preferred fix will 
be patch patch-ae to move erlang cookie to home directory of ejabberd  
/var/spool/ejabberd/db/ejabberd:

===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/chat/ejabberd/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- distinfo    10 Mar 2008 08:58:32 -0000      1.1.1.1
+++ distinfo    31 Mar 2008 08:44:18 -0000
@@ -7,4 +7,4 @@
 SHA1 (patch-ab) = a083116beb37cd19a011993e009b57a0a4b202bf
 SHA1 (patch-ac) = 23a7528ac5f3c9f1e7e89062e43482b8bf103e0e
 SHA1 (patch-ad) = ece5a64b4beacd967bdb24d42cf105cd3bb1b7b6
-SHA1 (patch-ae) = bbdd79cfac761c862d4d70d037990c3c3b99d57e
+SHA1 (patch-ae) = 32b4a66b4ca4b329abae632f0b7a4e62509237c6
cvs diff: Diffing files
cvs diff: Diffing patches
Index: patches/patch-ae
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/chat/ejabberd/patches/patch-ae,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 patch-ae
--- patches/patch-ae    10 Mar 2008 08:58:32 -0000      1.1.1.1
+++ patches/patch-ae    31 Mar 2008 08:44:18 -0000
@@ -31,7 +31,7 @@
  ERL_CRASH_DUMP=$LOGS_DIR/erl_crash_$DATETIME.dump
  ERL_INETRC=$ROOTDIR/etc/ejabberd/inetrc
 -HOME=$ROOTDIR/var/lib/ejabberd
-+HOME=@EJABBERD_VARDIR@/run/ejabberd
++HOME=@EJABBERD_VARDIR@/spool/ejabberd/db/$NODE

  # export global variables
  export EJABBERD_CONFIG_PATH



Home | Main Index | Thread Index | Old Index