#!/bin/bash
if [ "$JDBC_DRIVER" == "" ]
then
-JDBC_DRIVER=/usr/share/java/mysql-connector-java.jar
+JDBC_DRIVER=/usr/share/java/postgresql-jdbc4.jar
#echo "JDBC_DRIVER environment variable not set. Assumed path: $JDBC_DRIVER"
fi
if [ "$GIGI_EXEC" == "" ]
if [ "$1" == "start" ]
then
java -cp $JDBC_DRIVER:$GIGI_EXEC org.cacert.gigi.Launcher
+elif [ "$1" == "debug" ]
+then
+ java -cp $JDBC_DRIVER:$GIGI_EXEC -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 org.cacert.gigi.Launcher
elif [ "$1" == "start-daemon" ]
then
if [ ! -e /etc/cacert/gigi/conf.tar ]; then
tar x gigi.properties
else
echo "Usage: gigi <option>"
- echo "start - starts gigi"
- echo "signer - starts the simple signer"
- echo "reset-database - resets the database"
+ echo "debug - starts gigi in debug mode (on port 8000, with config from stdin)"
echo "fetch-locales - (re)fetch the localisation"
+ echo "reset-database - resets the database"
+ echo "signer - starts the simple signer"
+ echo "signer-conf - extract config for simple signer (and reset-database) from the tar from stdin"
+ echo "start - starts gigi"
+ echo "start-daemon - starts gigi in background (using config from /etc/cacert/gigi/conf.tar)"
+
fi