Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 56089

Summary: jabber start syntax error with jabberd-1.4.3-r3
Product: Gentoo Linux Reporter: Alan <alan>
Component: New packagesAssignee: Gentoo Net-im project <net-im>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alan 2004-07-04 14:24:35 UTC
I get the following error when starting up jabberd-1.4.3-r3

root@master:/var/spool/jabber/ufies.org# /etc/init.d/jabber start
 * Starting main Jabber Component...
cat: /var/log/jabber/jabberd14.pid: No such file or directory
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.                                                                                                                [ ok ]root@master:/var/spool/jabber/ufies.org#

The error is caused by (I think) these  links starting at line 15

      if [ -z $(ps ax | grep `cat ${JPIDFILE}` | grep -v grep ) ]
      then
         rm -f ${JPIDFILE}
      fi
 
If jabberd has stopped properly JPIDFILE won't exist and therefor the command is being interpreted as "... grep | grep -v grep..." with 'cat ${JPIDFILE}' resulting in a blank string.

Jabberd still starts however.
Comment 1 Alan 2004-07-04 14:27:27 UTC
My mistake, jabberd does NOT start when this error occurs.
Comment 2 Alan 2004-07-04 14:45:58 UTC
Note #2 

this error also affects some of the transports, ie: aim-transport, muc-transport, yahoo-transport and msn-transport
Comment 3 Gustavo Felisberto (RETIRED) gentoo-dev 2004-07-04 19:06:47 UTC

*** This bug has been marked as a duplicate of 54906 ***