[Gfoss] problema geoserver

dopo aver abbandonato per un attimo mapserver ho messo a punto
geoserver ma ho un problema con lo script per l'avvio del programma
con l'avvio del server, ho copiato questo [1] e settato con i miei
parametri ma ho questo errore

lucadelu:/usr/local/geoserver-1.7.0# /etc/init.d/geoserver start
Id «geoserver» sconosciuto

ciao e grazie
Luca

[1]http://geoserver.org/display/GEOSDOC/Ubuntu+init.d+startup+script

Luca Delucchi ha scritto:

dopo aver abbandonato per un attimo mapserver ho messo a punto
geoserver ma ho un problema con lo script per l'avvio del programma
con l'avvio del server, ho copiato questo [1] e settato con i miei
parametri ma ho questo errore

lucadelu:/usr/local/geoserver-1.7.0# /etc/init.d/geoserver start
Id «geoserver» sconosciuto

Hmmm... non lo so. Quello script è stato contribuito da un utente,
non l'ho mai provato. Dovrei mettermi portatile, sistemare
lo script ecc ecc come minimo mi parte mezz'ora, ho scadenze
a breve, non ce la faccio.
Vedo se riesco a darci una occhiata durante il fine settimana.

Ciao
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Scusa la domanda un po' scontata: l'utente geoserver esiste?

Se esiste, prova a mettere
set -x all'inizio dello script. Dovresti capire cosa succede.

Ciao
Andrea

On Thu, Oct 30, 2008 at 9:34 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

dopo aver abbandonato per un attimo mapserver ho messo a punto
geoserver ma ho un problema con lo script per l'avvio del programma
con l'avvio del server, ho copiato questo [1] e settato con i miei
parametri ma ho questo errore

lucadelu:/usr/local/geoserver-1.7.0# /etc/init.d/geoserver start
Id «geoserver» sconosciuto

ciao e grazie
Luca

[1]http://geoserver.org/display/GEOSDOC/Ubuntu+init.d+startup+script
_______________________________________________
Iscriviti all'associazione GFOSS.it: http://www.gfoss.it/drupal/iscrizione
Gfoss@faunalia.com
http://www.faunalia.com/cgi-bin/mailman/listinfo/gfoss
Questa e' una lista di discussione pubblica aperta a tutti.
I messaggi di questa lista non rispecchiano necessariamente
le posizioni dell'Associazione GFOSS.it.

2008/12/1 Andrea Aime <aaime@opengeo.org>:

Luca Delucchi ha scritto:

dopo aver abbandonato per un attimo mapserver ho messo a punto
geoserver ma ho un problema con lo script per l'avvio del programma
con l'avvio del server, ho copiato questo [1] e settato con i miei
parametri ma ho questo errore

lucadelu:/usr/local/geoserver-1.7.0# /etc/init.d/geoserver start
Id «geoserver» sconosciuto

Hmmm... non lo so. Quello script è stato contribuito da un utente,
non l'ho mai provato. Dovrei mettermi portatile, sistemare
lo script ecc ecc come minimo mi parte mezz'ora, ho scadenze
a breve, non ce la faccio.
Vedo se riesco a darci una occhiata durante il fine settimana.

ok grazie mille, tanto continuo a cercare una soluzione, se la trovo vi informo

Ciao
Andrea

ciao
Luca

2008/10/31 andrea antonello <andrea.antonello@gmail.com>:

Scusa la domanda un po' scontata: l'utente geoserver esiste?

l'ho modificato con il mio utente...

Se esiste, prova a mettere
set -x all'inizio dello script. Dovresti capire cosa succede.

ok stasera proverò

Ciao
Andrea

ciao e grazie
Luca

Ora non mi da più l'errore però non succede nulla, ciò se provo a
collegarmi a geoserver mi da errore. mi sembra che nello script non ci
sia nulla che richiami al mio path dove ci sono startup.sh e
shutdown.sh, mi sbaglio o no?

#! /bin/sh
### BEGIN INIT INFO
# Provides: geoserver
# Required-Start: startup.sh
# Required-Stop: shutdown,sh
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: GeoServer WMS/WFS server
# Description: Java based application for serving OGC compliant
web services.
### END INIT INFO

# Author: Amos Hayes <ahayes@gcrc.carleton.ca>

# Do NOT "set -e"

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/usr/sbin:/usr/bin:/sbin:/bin
DESC="geoserver"
NAME=geoserver
SCRIPTNAME=/etc/init.d/$NAME

## Replace these with the values for your installation
GEOSERVER_USER=luca
GEOSERVER_DATA_DIR=/usr/local/geoserver-1.7.0/data_dir
JAVA_HOME=/usr/lib/jvm/java-6-sun
GEOSERVER_HOME=/usr/local/geoserver-1.7.0/

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

# Load the VERBOSE setting and other rcS variables
[ -f /etc/default/rcS ] && . /etc/default/rcS

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions

case "$1" in
  start)
        [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"

        echo `date` >> $GEOSERVER_DATA_DIR/serverlog
        cd "$GEOSERVER_HOME"
        su "$GEOSERVER_USER" -c "$JAVA_HOME/bin/java
-DGEOSERVER_DATA_DIR=$GEOSERVER_DATA_DIR -Djava.awt.headless=true
-DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar start.jar >>
$GEOSERVER_DATA_DIR/serverlog 2>&1 &"

        case "$?" in
                0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
                2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
        esac
        ;;
  stop)
        [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"

        echo `date` >> $GEOSERVER_DATA_DIR/serverlog
        cd "$GEOSERVER_HOME"
        su "$GEOSERVER_USER" -c "$JAVA_HOME/bin/java -DSTOP.PORT=8079
-DSTOP.KEY=geoserver -jar start.jar --stop >>
$GEOSERVER_DATA_DIR/serverlog 2>&1"

        case "$?" in
                0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
                2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
        esac
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop}" >&2
        exit 3
        ;;
esac

:

ciao
Luca

Luca Delucchi ha scritto:

Ora non mi da più l'errore però non succede nulla, ciò se provo a
collegarmi a geoserver mi da errore. mi sembra che nello script non ci
sia nulla che richiami al mio path dove ci sono startup.sh e
shutdown.sh, mi sbaglio o no?

No infatti, ma questo non è necessariamente male. Le istruzioni
che lanciano start.jar in effetti rimpiazzano startup.sh con
il suo contenuto (all'incirca, non ho verificato).

Ciao
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.