summaryrefslogtreecommitdiff
blob: 1f91da2e7e68118792de5f0867f67675662e2004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#! /bin/sh

PROG_NAME="OX"

groupware="/etc/open-xchange/init.d/groupware"
webmail="/etc/open-xchange/init.d/webmail"
sessiond="/etc/open-xchange/init.d/sessiond"

case "$1" in
    start)
        echo "Starting all"
	start="$sessiond start"
	$start
	
	start="$groupware start"
	$start
	
	start="$webmail start"
	$start
	;;
    stop)
	echo "Stoping all"
	stop="$sessiond stop"
	$stop
	
	stop="$groupware stop"
	$stop
	
	stop="$webmail stop"
	$stop
	;;
    restart)
	echo "Restarting all"
	restart="$sessiond restart"
	$restart
	
	restart="$groupware restart"
	$restart
	
	restart="$webmail restart"
	$restart
	;;
    status)
	echo "Checking all"
	
	status="$sessiond status"
	$status
	
	status="$groupware status"
	$status
	
	status="$webmail status"
	$status
	;;
    *)
	echo "Usage: $0 {start|stop|status|restart}"
	exit 1
	;;
esac