Hi all,
I've just installed OpenKM 1.5.9 on a Opensuse 12.1
I've created the script /etc/init.d/jbossokm :
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
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
The run level for this service is 235#! /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
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