Page 1 of 1

Unable to autostart OpenKM 1.5.9 on Opensuse

PostPosted:Thu May 03, 2012 10:25 am
by michel78
Hi all,

I've just installed OpenKM 1.5.9 on a Opensuse 12.1
I've created the script /etc/init.d/jbossokm :
Code: Select all
#! /bin/sh
# /etc/init.d/jbossokm: Start and stop JBoss Application Service
### BEGIN INIT INFO
# Provides:      OpenKM41
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs
# Default-Start:  2 3 5
# Default-Stop:
# Short-Description: Inicia OPENKM Versión 4.1
# Description:    Inicia OPENKM Versión 4.1 Corriendo bajo JBoss4.2.3
### END INIT INFO

ECHO=/bin/echo
TEST=/usr/bin/test
JBOSS_START_SCRIPT=/home/jboss-4.2.3.GA/bin/run.sh
JBOSS_STOP_SCRIPT=/home/jboss-4.2.3.GA/bin/shutdown.sh

$TEST -x $JBOSS_START_SCRIPT || exit 0
$TEST -x $JBOSS_STOP_SCRIPT || exit 0

start() (
   $ECHO -n "Demarrage de JBoss ......"
   $JBOSS_START_SCRIPT -b 0.0.0.0 &
   $ECHO "."
   sleep 20
   )

stop () (
   $ECHO -n "Arret de JBoss"
   $JBOSS_STOP_SCRIPT -S &
   $ECHO "."
   )

case "$1" in
      start )
            start
            ;;
      stop )
            stop
            ;;
      restart )
            stop
            sleep 30
            start
            ;;
      * )
            $ECHO "Usage: jbossokm {start|stop|restart}"
            exit 1
esac

exit 0

The run level for this service is 235
I can start it manually (/etc/init.d/jbossokm start)
but it doesn't start automatically when the server start.

Any help would be appreciated.

Regards,

Michel

Re: Unable to autostart OpenKM 1.5.9 on Opensuse

PostPosted:Sat May 05, 2012 9:03 am
by jllort
You should search on google how to configure script as service I have no expertice on doing it on this OS.