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