LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2006, 02:03 AM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
can't find jabberd


hi there,

i just installed jabberd2 on my fc5 system with yum

yum install jabberd

i know it's on the system

[root@mc1 /]# rpm -qa | grep jabber
jabberd-2.0-0.s11.9.fc5

now when i log into webmin and choose the jabber icon it tells me

The Jabber server program /usr/sbin/jabberd was not found on your system. Either Jabber is not installed, or your module configuration is incorrect.

when i go into the module configuration and try and set it i cant find the 'Path to jabber server program' ...

i've run an updatedb after the install and search for jabberd and this is what it comes up with ...

[root@mc1 /]# updatedb
[root@mc1 /]# locate jabberd
/etc/jabberd
/etc/jabberd/c2s.xml
/etc/jabberd/c2s.xml.dist
/etc/jabberd/resolver.xml
/etc/jabberd/resolver.xml.dist
/etc/jabberd/router-users.xml
/etc/jabberd/router-users.xml.dist
/etc/jabberd/router.xml
/etc/jabberd/router.xml.dist
/etc/jabberd/s2s.xml
/etc/jabberd/s2s.xml.dist
/etc/jabberd/server.pem
/etc/jabberd/sm.xml
/etc/jabberd/sm.xml.dist
/etc/jabberd/templates
/etc/jabberd/templates/roster.xml
/etc/jabberd/templates/roster.xml.dist
/etc/pam.d/jabberd
/etc/rc.d/init.d/jabberd
/etc/rc.d/rc0.d/K15jabberd
/etc/rc.d/rc1.d/K15jabberd
/etc/rc.d/rc2.d/K15jabberd
/etc/rc.d/rc3.d/K15jabberd
/etc/rc.d/rc4.d/K15jabberd
/etc/rc.d/rc5.d/K15jabberd
/etc/rc.d/rc6.d/K15jabberd
/etc/sysconfig/jabberd
/usr/share/jabberd
/usr/share/doc/jabberd-2.0
/usr/share/doc/jabberd-2.0/AUTHORS
/usr/share/doc/jabberd-2.0/COPYING
/usr/share/doc/jabberd-2.0/ChangeLog
/usr/share/doc/jabberd-2.0/INSTALL
/usr/share/doc/jabberd-2.0/NEWS
/usr/share/doc/jabberd-2.0/PROTOCOL
/usr/share/doc/jabberd-2.0/README
/usr/share/doc/jabberd-2.0/TODO
/usr/share/jabberd/db-setup.mysql
/usr/share/jabberd/db-setup.pgsql
/usr/share/jabberd/migrate.pl
/usr/share/jabberd/pipe-auth.pl
/usr/share/man/man8/jabberd.8.gz
/var/lib/jabberd
/var/lib/jabberd/.bash_logout
/var/lib/jabberd/.bash_profile
/var/lib/jabberd/.bashrc
/var/lib/jabberd/.zshrc
/var/lib/jabberd/db
/var/lib/jabberd/log
/var/lib/jabberd/pid
/var/lib/jabberd/db/log.0000000001

nothing there jumps out at me as being the jabberd server program, help?
 
Old 04-12-2006, 02:12 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Sorry for the obvious question, but did find / -type f -name jabberd return anything? On my system I'm running Jabber 2, which I installed manually - the binary is in /usr/local/bin/jabberd
 
Old 04-12-2006, 04:06 AM   #3
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
when i ran that command this is what i got.

[root@mc1 jabberd]# find / -type f -name jabberd
/etc/pam.d/jabberd
/etc/sysconfig/jabberd
/etc/rc.d/init.d/jabberd

also i've posted the /etc/init.d/jabber script so see if anyone can find how it's starting the program

#!/bin/bash
#
# Based on script from Raymond 25DEC2003 support@bigriverinfotech.com
# Changed by Adrian Reber <adrian@lisas.de>
#
# processname: jabberd
# description: jabberd is the next generation of the jabberd server
# chkconfig: - 85 15
#

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/jabberd ] && . /etc/sysconfig/jabberd

if [ -z "$START_DAEMONS" ]; then
START_DAEMONS="router resolver sm c2s s2s"
fi

#
progs="$START_DAEMONS"
progsPath="/usr/bin"
confPath="/etc/jabberd"
pidPath="/var/lib/jabberd/pid"
retval=0
#
ReqBins ( ) {
for prog in ${progs}; do
if [ ! -x ${progsPath}/${prog} ]; then
echo "jabberd binary [${prog}] not found."
echo "Cannot continue."
return -1
fi
done
return 0
}
#
ReqConfs ( ) {
for prog in ${progs}; do
if [ ! -f ${confPath}/${prog}.xml ]; then
echo "jabberd configuration [${prog}.xml] not found."
echo "Cannot continue."
return -1
fi
done
return 0
}
#
ReqDirs ( ) {
if [ ! -d ${pidPath} ]; then
echo "jabberd PID directory not found. Cannot continue."
return -1
fi
return 0
}
#
Start ( ) {
for req in ReqBins ReqConfs ReqDirs; do
${req}
retval=$?
[ ${retval} == 0 ] || return ${retval}
done
echo "Initializing jabberd processes ..."
for prog in ${progs}; do
if [ $( pidof -s ${prog} ) ]; then
echo "process [${prog}] already running"
continue
fi
echo -n "Starting ${prog}: "
rm -f /var/lock/subsys/${prog}
rm -f ${pidPath}/${prog}.pid
args="-c ${confPath}/${prog}.xml"
if [ ${prog} == "c2s" -a ! -z "$C2S_AS_ROOT" ]; then
if [ $C2S_AS_ROOT == "yes" ]; then
daemon --user root "${progsPath}/${prog} ${args} & 2> /dev/null"
else
daemon --user jabber "${progsPath}/${prog} ${args} & 2> /dev/null"
fi
else
daemon --user jabber "${progsPath}/${prog} ${args} & 2> /dev/null"
fi
retval=$?
echo
if [ ${retval} == 0 ]; then
touch /var/lock/subsys/${prog}
else
let retval=-1
break
fi
done
return ${retval}
}
#
Stop ( ) {
echo "Terminating jabberd processes ..."
for prog in ${progs}; do
echo -n "Stopping ${prog}: "
killproc ${prog}
retval=$?
if [ ${retval} == 0 ]; then
rm -f /var/lock/subsys/${prog}
rm -f ${pidPath}/${prog}.pid
fi
echo
sleep 1
done
return ${retval}
}
#
reload()
{
echo "Reloading jabberd processes ..."
for prog in ${progs}; do
killproc ${prog} -HUP
retval=$?
killproc ${prog} -HUP
retval=$?
done
return ${retval}
}

rhstatus()
{
for prog in ${progs}; do
status ${prog}
done
}

case "$1" in
start)
Start
;;
stop)
Stop
;;
reload)
reload
;;
status)
rhstatus
;;
restart)
Stop
Start
;;
condrestart)
for prog in ${progs}; do
if [ ! -f /var/lock/subsys/${prog} ]; then
exit
fi
done
Stop
sleep 3
Start
;;
*)
echo "Usage: $0 {start|stop|restart|condrestart|reload|status}"
let retval=2
esac
exit ${retval}
 
Old 04-12-2006, 04:22 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I got about a third of the way through that and thought it would just be quicker to just check my own running processes (jabber2). It turns out that jabberd isn't a program that runs on my system - it's a perl script that starts up the jabber components, similar to the part of your script that loops through progs (router resolver sm c2s s2s) and starts them. So, the programs that run jabber are in progsPath (/usr/bin).

I'd guess that webmin expects jabberd to exist as it does in a manual install. It might work to create a script called /usr/sbin/jabberd and have it run the same thing that /etc/rc.d/init.d/jabberd start does. It's clunky but it should work unless webmin is providing arguments to the script and expecting output.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Jabberd 2 installation help lampshade9898 Linux - Software 2 06-29-2005 01:21 PM
jabberd gaah Linux - Software 3 10-23-2004 09:46 PM
Jabberd 2.0 davidsrsb Slackware 0 09-03-2004 11:42 PM
Jabberd agallant Linux - Software 0 05-03-2004 08:50 AM
jabberd server satimis Linux - Software 2 12-11-2003 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration