#!/bin/bash # $Header: /root/magellan-cvs/src/adito/adito.rc,v 1.1 2008-08-25 23:20:49 niro Exp $ #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k #%start: 30 #%stop: 30 #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions # we need java runtime vars source /etc/profile ADITO_ROOT=/opt/adito case "$1" in start) echo -e ${COLOREDSTAR}"Starting adito ... " ${ADITO_ROOT}/adito/install/platforms/linux/adito $1 &> /dev/null evaluate_retval update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; stop) echo -e ${COLOREDSTAR}"Stopping adito ... " ${ADITO_ROOT}/adito/install/platforms/linux/adito $1 &> /dev/null evaluate_retval update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;; restart) $0 stop sleep 1 $0 start ;; status|console|dump) ${ADITO_ROOT}/adito/install/platforms/linux/adito $1 ;; *) echo "Usage: $0 {start|stop|restart|status|console|dump}" exit 1 ;; esac