Hello,

J'ai bien compile un serveur jabberd mais j'ai deux petit soucis:

1. Le serveur ne peut pas trouver la valeur de PREFIX meme si cela semble
vraiment ok,
2. Ou est le jabberd.pid? Djeuss! :-) Je n'avais meme jamais lance jabberd
avant car le serveur n'etait meme pas installe sur la machine avant de
lancer le script pour la premiere fois...

Si vous pouviez m'eclairer, je prends toutes vos remarquies ;)

Merci,

Bogomips

#! /bin/sh

if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/jabberd\.sh\$"); then
    echo "$0: Cannot determine the PREFIX" >&2
    exit 1
fi

USER="jabber"
RUNDIR="/var/run"
HOSTNAME=`/bin/hostname`

test -x ${PREFIX}/sbin/jabberd || exit 1

export PATH=/sbin:/bin:/usr/bin:${PREFIX}/bin:${PREFIX}/sbin
umask 077

echo -n " jabberd "
cd ${RUNDIR} || exit

case ${1:-start} in
start)
    su -f -m ${USER} -c "jabberd -B -h ${HOSTNAME} -c
${PREFIX}/etc/jabber.xml" ;;

stop)
    killall -SIGKILL -u ${USER} jabberd;
    rm -f ${RUNDIR}/jabber.pid;
esac

[EMAIL PROTECTED]:/usr/local/etc/rc.d % /usr/local/sbin/jabberd -B -c
/usr/local/etc/jabber.xml
[EMAIL PROTECTED]:/usr/local/etc/rc.d % A pidfile already exists at the specified
location.  Check to ensure another copy of the server is not running, or
remove the existing file.

[EMAIL PROTECTED]:/usr/local/etc/rc.d % ./006.jabberd.sh
./006.jabberd.sh: Cannot determine the PREFIX
[EMAIL PROTECTED]:/usr/local/etc/rc.d %


_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: chat.unixtech.be:6667 - #unixtech

Répondre à