#!/sbin/runscript PROG_NAME="OX" groupware="/etc/open-xchange/init.d/groupware" webmail="/etc/open-xchange/init.d/webmail" sessiond="/etc/open-xchange/init.d/sessiond" depend() { need net postgresql slapd postfix cyrus apache2 tomcat5 after postgresql } checkconfig() { if [ ! -x "$groupware" ] ; then eerror "$groupware doesn't exist or nor executable" return 1 fi if [ ! -x "$webmail" ] ; then eerror "$webmail doesn't exist or nor executable" return 1 fi if [ ! -x "$sessiond" ] ; then eerror "$sessiond doesn't exist or nor executable" return 1 fi } start() { checkconfig || return 1 ebegin "Starting ComOffice" start="$sessiond start" $start start="$groupware start" $start start="$webmail start" $start # eend $? } stop() { echo "Stoping ComOffice" stop="$sessiond stop" $stop stop="$groupware stop" $stop stop="$webmail stop" $stop } opts="${opts} extendstatus" extendstatus() { status="$sessiond status" $status status="$groupware status" $status stop="$webmail status" $status }