Am 23.05.2002 18:52 Uhr schrieb "Fernando Padilla" unter
<[EMAIL PROTECTED]>:
>
> Hello.
>
> Has anyone out there created a script that can be used for the init.d
> system?
>
> fernando
>
>
Try this one:
#!/bin/sh
JAVA_HOME=/usr/java
export JAVA_HOME
XINDICE_HOME=/home/summit/xindice
export XINDICE_HOME
if [ $# -lt 1 ]
then
echo "usage: xindice [ start | stop ]"
exit
fi
if [ "$1" = "start" ]
then
cd $XINDICE_HOME
./start &
exit
fi
if [ "$1" = "stop" ]
then
$XINDICE_HOME/bin/xindiceadmin shutdown -c /db
exit
fi
echo "usage: xindice [ start | stop ]"
exit
:-) Carsten
--
Medizinische Hochschule Hannover Fachhochschule Hannover
Abt. H�matologie und Onkologie FB Informations- und Kommunikationswesen
Carl-Neuberg-Stra�e 1 Ricklinger Stadtweg 120
30625 Hannover 30459 Hannover
++49-511-9296-1650
http://summit-bmt.fh-hannover.de