#33715

Edito dos partes que quedaron mal

Quote:
# “local” is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all 0/0 trust
# IPv6 local connections:
host all all ::1/128 trust
Quote:
#!/bin/bash
if [ $EUID -ne 0 ] ;then
echo “Se requiere ejecutar como root” 2>&1
exit 1
fi

PID=/var/run/libertya.pid
STARTLIBERTYA=/ServidorOXP/utils/IniciarServidor.sh
STOPLIBERTYA=./DetenerServidor.sh

case “$1” in
start)
echo -n “Iniciando servidor Libertya… “
if test -f $PID ;then
echo “El servidor ya se encuentra iniciado”
else
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.15
export OXP_HOME=/ServidorOXP
start-stop-daemon –start –background -m –pidfile $PID –exec $STARTLIBERTYA
sleep 1;
echo “OK”
fi
;;
stop)
echo -n “Deteniendo servidor Libertya… “
if test -f $PID ;then
cd /ServidorOXP/utils/
$STOPLIBERTYA -S > /dev/null 2>&1
rm -f $PID
sleep 1;
echo “OK”
else
echo “El servidor no esta iniciado”
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo “Utilizacion: /etc/init.d/$0 {start|stop|restart}”
exit 1
;;
esac
exit 0