Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43851 - jabberd init script
Summary: jabberd init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 39395
  Show dependency tree
 
Reported: 2004-03-05 21:47 UTC by Leonid Kabanov
Modified: 2004-07-03 09:34 UTC (History)
1 user (show)

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


Attachments
msn-transport.init (msn-transport.init,422 bytes, text/plain)
2004-03-19 12:13 UTC, Gustavo Felisberto (RETIRED)
Details
msn-transport-20040228.ebuild (msn-transport-20040228.ebuild,1.15 KB, text/plain)
2004-03-19 12:30 UTC, Gustavo Felisberto (RETIRED)
Details
msnt.xml (msnt.xml,3.25 KB, text/plain)
2004-03-19 12:37 UTC, Gustavo Felisberto (RETIRED)
Details
aim-transport.init (aim-transport.init,422 bytes, text/plain)
2004-03-19 12:41 UTC, Gustavo Felisberto (RETIRED)
Details
aimtrans.xml (aimtrans.xml,607 bytes, text/plain)
2004-03-19 12:42 UTC, Gustavo Felisberto (RETIRED)
Details
aim-transport-20040131-r1.ebuild (aim-transport-20040131-r1.ebuild,1.31 KB, text/plain)
2004-03-19 12:42 UTC, Gustavo Felisberto (RETIRED)
Details
mu-conference-0.6.0-r1.ebuild (mu-conference-0.6.0-r1.ebuild,1.18 KB, text/plain)
2004-03-19 15:34 UTC, Gustavo Felisberto (RETIRED)
Details
muc-transport.init (muc-transport.init,442 bytes, text/plain)
2004-03-19 15:37 UTC, Gustavo Felisberto (RETIRED)
Details
muctrans.xml (muctrans.xml,908 bytes, text/plain)
2004-03-19 15:38 UTC, Gustavo Felisberto (RETIRED)
Details
mu-conference-0.6.0-r1.ebuild (mu-conference-0.6.0-r1.ebuild,1.30 KB, text/plain)
2004-03-19 16:21 UTC, Gustavo Felisberto (RETIRED)
Details
yahoo-transport-2.3.0-r2.ebuild (yahoo-transport-2.3.0-r2.ebuild,1.34 KB, text/plain)
2004-03-19 16:24 UTC, Gustavo Felisberto (RETIRED)
Details
yahoo-transport.init (yahoo-transport.init,456 bytes, text/plain)
2004-03-19 16:24 UTC, Gustavo Felisberto (RETIRED)
Details
yahootrans.xml (yahootrans.xml,791 bytes, text/plain)
2004-03-19 16:24 UTC, Gustavo Felisberto (RETIRED)
Details
jit-1.1.6-r3.ebuild (jit-1.1.6-r3.ebuild,1.21 KB, text/plain)
2004-03-27 13:31 UTC, Gustavo Felisberto (RETIRED)
Details
jit-transport.init (jit-transport.init,427 bytes, text/plain)
2004-03-27 13:31 UTC, Gustavo Felisberto (RETIRED)
Details
jit.xml (jit.xml,3.89 KB, text/plain)
2004-03-27 13:32 UTC, Gustavo Felisberto (RETIRED)
Details
jabber.rc6-r7 (jabber.rc6-r7,626 bytes, text/plain)
2004-03-28 08:50 UTC, Gustavo Felisberto (RETIRED)
Details
jabber-conf.d (jabber-conf.d,300 bytes, text/plain)
2004-03-28 08:51 UTC, Gustavo Felisberto (RETIRED)
Details
multiple-xml-patch-01 (multiple-xml-patch-01,303 bytes, text/plain)
2004-03-28 08:52 UTC, Gustavo Felisberto (RETIRED)
Details
jabberd-1.4.3-r3.ebuild (jabberd-1.4.3-r3.ebuild,5.11 KB, text/plain)
2004-03-28 08:53 UTC, Gustavo Felisberto (RETIRED)
Details
/etc/init.d/jabber moved 'kill' line down (jabber.patch,800 bytes, text/plain)
2004-05-21 23:03 UTC, Alex V. Koval
Details
/etc/init.d/jabber moved 'kill' line down (jabber.patch,800 bytes, patch)
2004-05-21 23:04 UTC, Alex V. Koval
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kabanov 2004-03-05 21:47:06 UTC
In jabber.rc6-r[56] jabber stopped using killall. I think using start-stop-daemon and pid-file is a better solution. For using this following changes are required:
1. Creating directory /var/run/jabber with jabber:jabber ownership.
2. Changing line in multiple.xml 
<pidfile>./jabber.pid</pidfile>
to
<pidfile>/var/run/jabber/jabberd.pid</pidfile>
3. In each jabber transport config (aimtrans.xml, jit.xml, etc.) adding line like this:
 <pidfile>/var/run/jabber/jabberd.aimtrans.pid</pidfile>
4. Changing /etc/init.d/jabber to use start-stop-daemon

After those changes it's also possible to split init-script into more simplier scripts for each jabber component. Adding new component that does not use jabberd (like jit and janchor) will be very easy in this case.
Comment 1 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-07 13:02:33 UTC
I personally like the idea. Because it also helps with some other things i was thinking (like jabberd2). I will try to work this out.
Comment 2 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 12:12:11 UTC
I did a small script for the msn transport it is in cvs but i will post it here. Also ALL transports need to have such a script before I start to change the ebuilds.
Comment 3 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 12:13:15 UTC
Created attachment 27636 [details]
msn-transport.init
Comment 4 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 12:30:18 UTC
Created attachment 27640 [details]
msn-transport-20040228.ebuild

Updated ebuild for msn that will install the new service. Also there is an
update to the version of the transport"
Comment 5 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 12:37:22 UTC
Created attachment 27643 [details]
msnt.xml

Updated msnt.xml to creat the pid necessary to kill the service.
This makes it all for msn-transport. Next is aim.
Also please note that jabber will be the last to be made because that service
will have to know if it will start a jabberd1.4 or a jabberd2 and i still have
some doubts on the proper way to do that.
Comment 6 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 12:41:55 UTC
Created attachment 27644 [details]
aim-transport.init
Comment 7 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 12:42:22 UTC
Created attachment 27645 [details]
aimtrans.xml
Comment 8 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 12:42:57 UTC
Created attachment 27646 [details]
aim-transport-20040131-r1.ebuild
Comment 9 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 15:34:37 UTC
Created attachment 27657 [details]
mu-conference-0.6.0-r1.ebuild
Comment 10 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 15:37:10 UTC
Created attachment 27658 [details]
muc-transport.init
Comment 11 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 15:38:04 UTC
Created attachment 27659 [details]
muctrans.xml
Comment 12 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 16:21:27 UTC
Created attachment 27661 [details]
mu-conference-0.6.0-r1.ebuild

Missing einfo
Comment 13 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 16:24:14 UTC
Created attachment 27663 [details]
yahoo-transport-2.3.0-r2.ebuild
Comment 14 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 16:24:37 UTC
Created attachment 27664 [details]
yahoo-transport.init
Comment 15 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-19 16:24:57 UTC
Created attachment 27665 [details]
yahootrans.xml
Comment 16 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-27 13:31:15 UTC
Created attachment 28166 [details]
jit-1.1.6-r3.ebuild
Comment 17 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-27 13:31:43 UTC
Created attachment 28167 [details]
jit-transport.init
Comment 18 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-27 13:32:09 UTC
Created attachment 28168 [details]
jit.xml
Comment 19 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-28 08:50:45 UTC
Created attachment 28217 [details]
jabber.rc6-r7
Comment 20 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-28 08:51:13 UTC
Created attachment 28218 [details]
jabber-conf.d
Comment 21 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-28 08:52:21 UTC
Created attachment 28219 [details]
multiple-xml-patch-01
Comment 22 Gustavo Felisberto (RETIRED) gentoo-dev 2004-03-28 08:53:41 UTC
Created attachment 28220 [details]
jabberd-1.4.3-r3.ebuild

With this the main work is done. I will start adding this to portage (hard
masked) in a few days, after i have the time to test it in a new box that i am
setting up.
Comment 23 Alex V. Koval 2004-05-21 23:03:58 UTC
Created attachment 31828 [details]
/etc/init.d/jabber moved 'kill' line down 

Hi,

In /etc/init.d/jabber I moved line with killing 1.4 jabberd down 1 line,
so now I do not get the following error message when restarting jabber:

mail3 conf.d # /etc/init.d/jabber stop
 * Stopping main Jabber Component...
/sbin/runscript.sh: line 1: /var/log/jabber/jabberd14.pid: No such file or 
direc
tory
kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or 
kill -l 
[sigspec]
Comment 24 Alex V. Koval 2004-05-21 23:04:02 UTC
Created attachment 31829 [details, diff]
/etc/init.d/jabber moved 'kill' line down 

Hi,

In /etc/init.d/jabber I moved line with killing 1.4 jabberd down 1 line,
so now I do not get the following error message when restarting jabber:

mail3 conf.d # /etc/init.d/jabber stop
 * Stopping main Jabber Component...
/sbin/runscript.sh: line 1: /var/log/jabber/jabberd14.pid: No such file or 
direc
tory
kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or 
kill -l 
[sigspec]
Comment 25 Gustavo Felisberto (RETIRED) gentoo-dev 2004-07-03 09:34:30 UTC
All this is portage for some time so i guess it is time to close. Thanks to all involved.