[JDEV] j1.2 on RH 6.2 --??

John Hebert john at vedalabs.com
Tue Jan 2 11:02:36 CST 2001


There is no inetd config associated with jabberd-1.2 in the default
install. It could be configured that way, but inetd is normally used for
services that are brought up when needed. Since you want jabberd to
always be running, you need to start it at boot time with the rest of
the init.d scripts. I've configured jabberd to start under
/etc/rc.d/init.d/jabberd using jtournier's script, but note that this
method is RedHat specific:

#!/bin/sh
# Script for starting jabber
###
### 2000 IDEALX S.A.S.
### author jtournier at idealx.com
###

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

case "$1" in
    start)
        echo -n "Starting jserver:"
        /usr/local/bin/jabberd &
        echo
        ;;
    -D)
        echo -n "Starting jserver in debugg mode:"
        /usr/local/bin/jabberd -D
        echo
        ;;
    stop) echo -n "Shutting down jabber: "
        killproc jabberd
        echo
        ;;
    status) status jabberd
        ;;
    restart)
        $0 stop
        $0 start
        ;;
    *)
        echo "Usage: jserver {start}"
        echo "or option -D for debugg mode"
        exit 1

esac

exit 0 


With this script, you can control jabberd from the command line using
the various cases above as args.

Does anybody know what would be involved in rewriting jtournier's script
so that it can be managed using chkconfig? Or is this not a good idea
since chkconfig is RedHat specific? Is there a platform independent way
of starting background services like jabberd?

John Hebert


dlb wrote:
> 
> I think an upgrade is probably in order.  Strangely my previous query of
> netstat indicates
> that my system is listening to the appropriate ports, and that these
> bindings are associated
> with jserver.   Is there an inetd config declaration associated with jabber
> ??
> 
> thanks John
> 
> D
>




More information about the JDev mailing list