Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143955 - jabberd-2.0.11 - broken init script
Summary: jabberd-2.0.11 - broken init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
: 67457 102546 146320 149393 150248 (view as bug list)
Depends on:
Blocks: 150107
  Show dependency tree
 
Reported: 2006-08-14 17:02 UTC by David Masover
Modified: 2006-10-23 08:30 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Weird patch (jabber.patch,180 bytes, patch)
2006-08-14 17:03 UTC, David Masover
Details | Diff
emerge --info (emerge.info.vc.txt,3.00 KB, text/plain)
2006-08-16 08:10 UTC, Vic Cross
Details
emerge --info (info,2.86 KB, text/plain)
2006-08-16 10:40 UTC, David Masover
Details
new patch (jabberd.patch,283 bytes, patch)
2006-09-05 04:39 UTC, Yaroslav Isakov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Masover 2006-08-14 17:02:10 UTC
Using jabberd-2.0.11, after a recent round of updating (not sure exactly what got updated), my Jabber init script fails to start.  I can't find a single error -- as far as I can tell from the syslog, the entire jabberd system started, then stopped, entirely normally, when I just wanted it to start.

I tried running "jabberd" from the commandline -- worked.  Tried copying/pasting the command out of the init script -- worked.
Comment 1 David Masover 2006-08-14 17:03:16 UTC
Created attachment 94285 [details, diff]
Weird patch

So tell me -- why does this patch work?
Comment 2 Vic Cross 2006-08-16 08:06:47 UTC
I just experienced this same bug, and David's patch works for me.  Strangely, when I first installed jabberd2 it started fine, but I changed the configuration to LDAP authentication (from MySQL) and then I got the bug.  Changing back to MySQL auth unfortunately didn't remove the bug though.

Attaching emerge --info.
Comment 3 Vic Cross 2006-08-16 08:10:16 UTC
Created attachment 94400 [details]
emerge --info
Comment 4 David Masover 2006-08-16 10:38:55 UTC
(In reply to comment #2)
> I just experienced this same bug, and David's patch works for me.

If you didn't notice from reading the patch:  This patch should not work, and it's a truly ugly hack, mostly because so far no one knows why it works.  I'm using that patch because I want a working jabberd, but it probably shouldn't go into the tree until someone either fixes the real bug or comes up with a good reason why it works the way it does.

I don't see how emerge info will help here, but I should probably do that anyway...
Comment 5 David Masover 2006-08-16 10:40:01 UTC
Created attachment 94405 [details]
emerge --info
Comment 6 Vic Cross 2006-08-18 09:50:07 UTC
Agree with your comments David, it's not suitable for inclusion in the tree, but like you I need a working jabberd.  Besides, it wouldn't be the Gentoo bugzilla without at least one "me too". :D  And yes, emerge --info is probably no help for this bug.

Bug 102546 discusses a similar problem with an earlier jabberd init script.  The problem seems to stem from the subject of the start_stop_daemon call in the init script being a script itself.  Perhaps the real solution is to rewrite the init script so that the called script is inline and therefore no longer required...
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-09-04 15:02:59 UTC
*** Bug 146320 has been marked as a duplicate of this bug. ***
Comment 8 Yaroslav Isakov 2006-09-05 04:37:49 UTC
I create a new patch. This one is foк /usr/bin/jabber
Comment 9 Yaroslav Isakov 2006-09-05 04:39:29 UTC
Created attachment 96053 [details, diff]
new patch
Comment 10 David Masover 2006-09-07 20:00:22 UTC
Ok...  That looks like the Right Thing, but does make my patch unnecessary?  And do we have any clue why it works?
Comment 11 Yaroslav Isakov 2006-09-08 04:51:45 UTC
Yes, it does. I think, that this work, because /bin/sh is not very good for perl invocation (it's my opinion). And your patch start perl with bash, and my patch start perl itself. It's right way to write perl scripts
Comment 12 Boyd Stephen Smith Jr. 2006-09-23 04:17:52 UTC
This bug bit me too, and the patch given in comment #9 resolved the issue.
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-09-28 03:57:02 UTC
*** Bug 149393 has been marked as a duplicate of this bug. ***
Comment 14 Rob Terhaar 2006-09-28 08:16:35 UTC
I had the same situation as comment #12

i'm using sys-apps/baselayout-1.12.5-r1

Comment 15 David Danier 2006-10-03 01:00:57 UTC
Had this problem, too. The "new patch" worked fine.
Comment 16 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-10-04 14:01:08 UTC
*** Bug 102546 has been marked as a duplicate of this bug. ***
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-10-06 03:56:58 UTC
*** Bug 150248 has been marked as a duplicate of this bug. ***
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2006-10-06 03:57:42 UTC
*** Bug 67457 has been marked as a duplicate of this bug. ***
Comment 19 Francesco R. (RETIRED) gentoo-dev 2006-10-07 08:44:01 UTC
nelchael, this is a baselayout change,
sys-apps/baselayout-1.12.5-r2
will not start the servers, the change will not be reverted, so this one need to be fixed.
Comment 20 Plüss Roland 2006-10-08 06:45:41 UTC
With patch 9 my jabberd did not work, in contrary, it does now even now start from the command line anymore. Definitly not a solution ;=;
Comment 21 Yaroslav Isakov 2006-10-08 11:54:16 UTC
After update i cannot run /etc/init.d/jabberd, too. My patch doesn't work. Strange.
Comment 22 Yaroslav Isakov 2006-10-08 11:56:56 UTC
"Weird patch" doesn't work, too. The only solution is start jabberd by hand, i.e. /usr/bin/jabberd
Comment 23 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-10-11 07:31:00 UTC
Please re-emerge jabberd-2.0.11-r1 - it has brand new init.d script that uses /etc/jabber/jabberd.cfg to control which modules should be started.
Comment 24 Markus Tacker 2006-10-12 11:53:55 UTC
(In reply to comment #23)
> Please re-emerge jabberd-2.0.11-r1 - it has brand new init.d script that uses
> /etc/jabber/jabberd.cfg to control which modules should be started.

Works. Thanks.
Comment 25 Thorsten 2006-10-23 08:30:19 UTC
When I use virtual hosting and I have two session manager in the jabberd.cfg, the init-script can't start both sm's.