LinuxQuestions.org
Help answer threads with 0 replies.
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 10-20-2003, 03:14 PM   #1
jimmax777
LQ Newbie
 
Registered: Aug 2003
Location: Mumbai, India
Distribution: Red Hat 9
Posts: 26

Rep: Reputation: 15
Start Jabber server on Linux RH9 system Boot


Hey,

I have successfully installed and tested the jabber server 1.4.2 and it just works fine. Now I am facing one problem. Whenever I restart my server I have to start jabber server manually. I tried putting the script in /etc/init.d/ and running it again but it didnt work. How do I make my Jabber server startup on boot automatically???

I need help please. I am stuck. I tried looking on the net. but couldnt find anything.

Can anyone help???

I have tried putting the following script as /etc/init.d/jabber
but it doesnt work. Help me please



//////////

#!/bin/sh
#
# chkconfig: - 2345 92 30
# description: Starts and stops the Jabber jabberd daemon \
# used to provide Instant Messaging service.
#
# pidfile: /var/run/jabber/jabberd.pid
# config: /usr/local/jabber/jabber-1.4.2\jabber.xml


# Source function library.
if [ -f /etc/init.d/functions ] ; then
. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
. /etc/rc.d/init.d/functions
else
exit 0
fi


# Source networking configuration.
. /etc/sysconfig/network

if [ -f /etc/sysconfig/jabberd ]; then
. /etc/sysconfig/jabberd
fi

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# Check that smb.conf exists.
[ -f /usr/local/jabber/jabber-1.4.2/jabber.xml ] || exit 0

# Check that we can write to it... so non-root users stop here
[ -w /usr/local/jabber/jabber-1.4.2/jabber.xml ] || exit 0


RETVAL=0


start() {
KIND="JABBER"
echo -n $"Starting $KIND services: "
daemon jabberd $JABBERDOPTIONS
RETVAL=$?
echo
[ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && touch /var/lock/subsys/jabber || \
RETVAL=1
return $RETVAL
}

stop() {
KIND="JABBER"
echo -n $"Shutting down $KIND services: "
killproc jabberd
RETVAL=$?
echo
[ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var/lock/subsys/jabber
echo ""
return $RETVAL
}

restart() {
stop
start
}

reload() {
echo -n $"Reloading jabber.xml file: "
killproc jabberd -HUP
RETVAL=$?
echo
return $RETVAL
}

rhstatus() {
status jabberd
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
status)
rhstatus
;;
condrestart)
[ -f /var/lock/subsys/jabber ] && restart || :
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status|condrestart}"
exit 1
esac

exit $?
 
Old 02-17-2004, 01:55 AM   #2
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
if you still look for asolution, it might help you to say that

/var/run/jabber/process.pid remains undeleted after the daemon dies...

I saw this problem too....



Could you send me your config file? I couldn't manage to make it work (local LAN, no DNS)...

this is my message was posted by me on debianhelp :
Quote:
Did anybody managed to configure and make jabber work?

I busted my brains trying to configure it to make it work for about 7 (seven) hours, and all I could get was successfully registering users, BUT the users fail to log in....

I tried various clients: gaim(woody), gaim(windows), jajc(windows), gabber(woody), everybuddy, konverse....


I used the woody version of jabber, as I plan deploying a stable server, could the backported version of jabber do the deal?

for configuration I used by hand editing and also webmin, in none of the attempts I managed to make it work.....
:-(

please help me!
 
Old 02-17-2004, 01:57 AM   #3
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
you're using redhat right? why not just put the jabber command you want into the /etc/rc.d/rc.local file? and if that pid file is a problem, you can check for it and use the rm command to delete that file before calling jabber, all inside that script that redhat provides for convenience.
 
Old 02-17-2004, 05:17 AM   #4
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
I am using debian, and there is a startup script, but it doesn't do it's job well...

I will take a look at it, and see if is there something to fix or if I understand what it's problem...
 
Old 02-17-2004, 05:19 AM   #5
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
now I saw that the thread starter had only 3 posts since august last year...
 
  


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
How To Install Jabber Server on RH9 hasnain Linux - Networking 6 07-09-2004 05:21 PM
Interface ppp0 fails to start during RH9 boot nimcha Linux - Software 0 05-20-2004 03:07 PM
RH9 Apache Start on Boot jaqkar Linux - Newbie 5 02-21-2004 11:33 AM
Start Jabber as daemon jgnasser Linux - Newbie 1 02-16-2004 01:44 PM
Jabber Server gcombe74 Linux - Software 1 08-10-2002 05:45 PM

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

All times are GMT -5. The time now is 12:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration