LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Start Jabber server on Linux RH9 system Boot (https://www.linuxquestions.org/questions/linux-software-2/start-jabber-server-on-linux-rh9-system-boot-106386/)

jimmax777 10-20-2003 02:14 PM

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 $?

pe2338 02-17-2004 12:55 AM

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!

megaspaz 02-17-2004 12:57 AM

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.

pe2338 02-17-2004 04:17 AM

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...

pe2338 02-17-2004 04:19 AM

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


All times are GMT -5. The time now is 03:25 AM.