summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/open-xchange/files/open-xchange')
-rw-r--r--www-apps/open-xchange/files/open-xchange62
1 files changed, 62 insertions, 0 deletions
diff --git a/www-apps/open-xchange/files/open-xchange b/www-apps/open-xchange/files/open-xchange
new file mode 100644
index 0000000..eb555fc
--- /dev/null
+++ b/www-apps/open-xchange/files/open-xchange
@@ -0,0 +1,62 @@
+#!/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
+}