Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 331398 Details for
Bug 314473
net-im/jabberd2-2.2.17 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
jabberd2.init
jabberd2.init (text/plain), 2.31 KB, created by
Marcin Mirosław
on 2012-12-04 11:53:11 UTC
(
hide
)
Description:
jabberd2.init
Filename:
MIME Type:
Creator:
Marcin Mirosław
Created:
2012-12-04 11:53:11 UTC
Size:
2.31 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >depend() { > need net > use mysql postgresql slapd > provide jabber-server >} > >SERVICES_CONF="/etc/jabber/jabberd.cfg" > >start() { > if [ ! -r "${SERVICES_CONF}" ]; then > eerror "You didn't configure services in ${SERVICES_CONF} file or file is not readable" > return 1 > fi > einfo "Starting Jabber Services ..." > local pid_name pid_path services > services="$(grep -v "^ *#" "${SERVICES_CONF}" | grep '..*' | awk '{print $1 ":" $2}')" > eindent > > checkpath -d -m 0755 -o jabber:jabber /var/run/jabber/ > > for service in ${services}; do > cfgfile=$(echo ${service} | cut -d ':' -f 2) > service=$(echo ${service} | cut -d ':' -f 1) > ebegin "Starting ${service} (${cfgfile})" > if [ ! -f "${cfgfile}" ]; then > eerror "Can't find: ${cfgfile}" > stop > return 1 > fi > > executable=/usr/bin/${service} > if [ ! -f "${executable}" ]; then > eerror "Can't find executable: ${executable}" > stop > return 1 > fi > > pid_path="$(xmllint --nonet --xpath /${service}/pidfile ${cfgfile} 2>/dev/null )" > if [ "$?" -ne "0" ] ; then > eerror "Can't find pidfile in ${cfgfile}, did you set it?" > stop > return 1 > fi > pid_name="$(echo ${pid_path} | sed -e 's@<[^>]*>@@g' -e 's@/.*/@@' )" > start-stop-daemon \ > --background \ > --start \ > --user jabber:jabber \ > --exec ${executable} \ > --pidfile /var/run/jabber/${pid_name} \ > -- -c ${cfgfile} > eend $? > done > eoutdent >} > >stop() { > einfo "Stopping Jabber Services ..." > eindent > local pid_name pid_path services > services="$(grep -v "^ *#" "${SERVICES_CONF}" | grep '..*' | awk '{print $1 ":" $2}' | tac)" > for service in ${services}; do > cfgfile=$(echo ${service} | cut -d ':' -f 2) > service=$(echo ${service} | cut -d ':' -f 1) > ebegin "Stopping ${service} (${cfgfile})" > if [ ! -f "${cfgfile}" ]; then > eerror "Can't find: ${cfgfile}" > return 1 > fi > > pid_path="$(xmllint --nonet --xpath /${service}/pidfile ${cfgfile} 2>/dev/null )" > if [ "$?" -ne "0" ] ; then > eerror "Can't find pidfile in ${cfgfile}, did you set it?" > return 1 > fi > pid_name="$(echo ${pid_path} | sed -e 's@<[^>]*>@@g' -e 's@/.*/@@' )" > start-stop-daemon \ > --stop \ > --user jabber \ > --name "${service}" \ > --pidfile /var/run/jabber/${pid_name} > eend $? > done > eoutdent >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 314473
:
227217
|
260835
|
267507
|
267509
|
267511
|
269483
|
279767
|
279777
|
280283
|
286421
|
288599
|
289339
|
289341
|
311831
|
311833
|
312185
|
322412
|
322507
|
330825
| 331398 |
331400
|
332788
|
332790
|
332792
|
350230
|
350366
|
350368
|
358958
|
358960