Have you ever needed a compiere startup script to take care that your compiereinstance get's autostarted?
Compiere startup script:
#!/bin/sh # # This script was provided to you free of charge by the comdivision consulting GmbH (http://www.comdivision.com) as long as this note is kept intact. # # compiere: Compiere Server Daemon # # chkconfig: - 26 89 # description: Compiere Server Daemon # export JAVA_HOME=/usr/java/latest export COMPIERE_HOME=/Compiere2 export PATH=$PATH:$JAVA_HOME/bin start() { echo -n $"Starting Compiere: " cd $COMPIERE_HOME/utils ./RUN_Server2.sh echo } stop() { echo -n $"Shutting down Compiere: " cd $COMPIERE_HOME/utils ./RUN_Server2Stop.sh echo } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|reload) stop start ;; *) echo $"Usage: $0 {start|stop|restart|reload}" exit 1 esac exit 0
Install the script:
cd /etc/init.d chmod a+rx compiere chkconfig --add compiere chkconfig --levels 345 compiere on
Add Comment