#!/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 slapd postfix cyrus apache2 tomcat5 use postgresql mysql after postgresql mysql } 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 Open-Xchange" start="$sessiond start" $start start="$groupware start" $start start="$webmail start" $start # eend $? } stop() { echo "Stoping Open-Xchange" 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 }