Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 121951 Details for
Bug 171198
net-im/jabberd ~x86-fbsd keywording request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for jabberd init script
jabberd-init-posix (text/plain), 1.66 KB, created by
Diego Elio Pettenò (RETIRED)
on 2007-06-13 17:33:38 UTC
(
hide
)
Description:
Patch for jabberd init script
Filename:
MIME Type:
Creator:
Diego Elio Pettenò (RETIRED)
Created:
2007-06-13 17:33:38 UTC
Size:
1.66 KB
patch
obsolete
>Index: files/jabberd-2.1.6.init >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/net-im/jabberd/files/jabberd-2.1.6.init,v >retrieving revision 1.1 >diff -u -B -r1.1 jabberd-2.1.6.init >--- files/jabberd-2.1.6.init 7 Jun 2007 09:17:37 -0000 1.1 >+++ files/jabberd-2.1.6.init 13 Jun 2007 17:31:29 -0000 >@@ -9,12 +9,12 @@ > provide jabber-server > } > >-function stopJabberServices() { >+stopJabberServices() { > > eindent > for pidfile in /var/run/jabber/*.pid; do >- if [[ -f "${pidfile}" ]]; then >- service=$(basename ${pidfile/.pid/}) >+ if [ -f "${pidfile}" ]; then >+ service=$(basename ${pidfile} .pid) > ebegin "Stopping ${service}" > start-stop-daemon \ > --stop \ >@@ -29,14 +29,15 @@ > start() { > > einfo "Starting Jabber Server ..." >- local services=$(grep -v ^# /etc/jabber/jabberd.cfg | grep '..*' | awk '{print $1 ":" $2}') >+ local services >+ services=$(grep -v ^# /etc/jabber/jabberd.cfg | grep '..*' | awk '{print $1 ":" $2}') > eindent > for service in ${services}; do > >- cfgfile=${service/*:/} >- service=${service/:*/} >- if [[ ! -f "${cfgfile}" ]]; then >- if [[ -f "/etc/jabber/${service}.xml" ]]; then >+ cfgfile=$(echo ${service} | cut -d ':' -f 2) >+ service=$(echo ${service} | cut -d ':' -f 1) >+ if [ ! -f "${cfgfile}" ]; then >+ if [ -f "/etc/jabber/${service}.xml" ]; then > cfgfile="/etc/jabber/${service}.xml" > else > eerror "Can't find: ${cfgfile} or default /etc/jabber/${service}.xml" >@@ -47,7 +48,7 @@ > > executable=/usr/bin/${service} > >- if [[ ! -f "${executable}" ]]; then >+ if [ ! -f "${executable}" ]; then > eerror "Can't find executable: ${executable}" > stopJabberServices > return 1
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 171198
:
113521
| 121951