1 |
diff -urN smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services smeserver-zarafa-0.9.0.new/root/etc/e-smith/events/actions/zarafa-services |
2 |
--- smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services 2010-02-13 16:58:45.000000000 +1100 |
3 |
+++ smeserver-zarafa-0.9.0.new/root/etc/e-smith/events/actions/zarafa-services 2010-02-13 22:52:25.000000000 +1100 |
4 |
@@ -1,9 +1,63 @@ |
5 |
#!/bin/sh |
6 |
|
7 |
-/etc/rc.d/init.d/zarafa-gateway $1 |
8 |
-/etc/rc.d/init.d/zarafa-ical $1 |
9 |
-/etc/rc.d/init.d/zarafa-licensed $1 |
10 |
-/etc/rc.d/init.d/zarafa-monitor $1 |
11 |
-/etc/rc.d/init.d/zarafa-server $1 |
12 |
-/etc/rc.d/init.d/zarafa-spooler $1 |
13 |
+FILE=/etc/rc.d/init.d/zarafa-licensed |
14 |
+ |
15 |
+if [ "$1" == start ]; then |
16 |
+ /etc/rc.d/init.d/zarafa-gateway start |
17 |
+ /etc/rc.d/init.d/zarafa-ical start |
18 |
+ if [ -a $FILE ]; then $FILE start; fi |
19 |
+ /etc/rc.d/init.d/zarafa-monitor start |
20 |
+ /etc/rc.d/init.d/zarafa-server start |
21 |
+ /etc/rc.d/init.d/zarafa-spooler start |
22 |
+ exit 0 |
23 |
+fi |
24 |
+ |
25 |
+if [ "$1" == stop ]; then |
26 |
+ /etc/rc.d/init.d/zarafa-gateway stop |
27 |
+ /etc/rc.d/init.d/zarafa-ical stop |
28 |
+ if [ -a $FILE ]; then $FILE stop; fi |
29 |
+ /etc/rc.d/init.d/zarafa-monitor stop |
30 |
+ /etc/rc.d/init.d/zarafa-spooler stop |
31 |
+ /etc/rc.d/init.d/zarafa-server stop |
32 |
+ exit 0 |
33 |
+fi |
34 |
+ |
35 |
+if [ "$1" == restart ]; then |
36 |
+ /etc/rc.d/init.d/zarafa-gateway stop |
37 |
+ /etc/rc.d/init.d/zarafa-ical stop |
38 |
+ if [ -a $FILE ]; then $FILE stop; fi |
39 |
+ /etc/rc.d/init.d/zarafa-monitor stop |
40 |
+ /etc/rc.d/init.d/zarafa-spooler stop |
41 |
+ /etc/rc.d/init.d/zarafa-server stop |
42 |
+ /etc/rc.d/init.d/zarafa-gateway start |
43 |
+ /etc/rc.d/init.d/zarafa-ical start |
44 |
+ if [ -a $FILE ]; then $FILE start; fi |
45 |
+ /etc/rc.d/init.d/zarafa-monitor start |
46 |
+ /etc/rc.d/init.d/zarafa-server start |
47 |
+ /etc/rc.d/init.d/zarafa-spooler start |
48 |
+ exit 0 |
49 |
+fi |
50 |
+ |
51 |
+if [ "$1" == enabled ]; then |
52 |
+ config setprop zarafa-gateway status enabled |
53 |
+ config setprop zarafa-ical status enabled |
54 |
+ if [ -a $FILE ]; then config setprop zarafa-licensed status enabled; fi |
55 |
+ config setprop zarafa-monitor status enabled |
56 |
+ config setprop zarafa-server status enabled |
57 |
+ config setprop zarafa-spooler status enabled |
58 |
+ exit 0 |
59 |
+fi |
60 |
+ |
61 |
+if [ "$1" == disabled ]; then |
62 |
+ config setprop zarafa-gateway status disabled |
63 |
+ config setprop zarafa-ical status disabled |
64 |
+ if [ -a $FILE ]; then config setprop zarafa-licensed status disabled; fi |
65 |
+ config setprop zarafa-monitor status disabled |
66 |
+ config setprop zarafa-server status disabled |
67 |
+ config setprop zarafa-spooler status disabled |
68 |
+ exit 0 |
69 |
+fi |
70 |
+ |
71 |
+echo "Usage: start|stop|restart|enabled|disabled" |
72 |
+exit 0 |
73 |
|
74 |
diff -urN smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services-stop smeserver-zarafa-0.9.0.new/root/etc/e-smith/events/actions/zarafa-services-stop |
75 |
--- smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services-stop 2010-02-13 16:58:45.000000000 +1100 |
76 |
+++ smeserver-zarafa-0.9.0.new/root/etc/e-smith/events/actions/zarafa-services-stop 1970-01-01 10:00:00.000000000 +1000 |
77 |
@@ -1,8 +0,0 @@ |
78 |
-#!/bin/sh |
79 |
- |
80 |
-/etc/rc.d/init.d/zarafa-gateway stop |
81 |
-/etc/rc.d/init.d/zarafa-ical stop |
82 |
-/etc/rc.d/init.d/zarafa-licensed stop |
83 |
-/etc/rc.d/init.d/zarafa-monitor stop |
84 |
-/etc/rc.d/init.d/zarafa-spooler stop |
85 |
-/etc/rc.d/init.d/zarafa-server stop |
86 |
diff -urN smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-update smeserver-zarafa-0.9.0.new/root/etc/e-smith/events/actions/zarafa-update |
87 |
--- smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-update 2010-02-13 16:58:46.000000000 +1100 |
88 |
+++ smeserver-zarafa-0.9.0.new/root/etc/e-smith/events/actions/zarafa-update 2010-02-13 22:54:00.000000000 +1100 |
89 |
@@ -6,7 +6,5 @@ |
90 |
FILE=/var/lib/zarafa-webaccess-mobile/templates_c; if [ -d $FILE ]; then /bin/chown -R www:www $FILE; fi |
91 |
FILE=/var/lib/zarafa/z-push/state; if [ -d $FILE ]; then /bin/chown -R www:www $FILE; fi |
92 |
FILE=/etc/httpd/conf.d/zarafa-webaccess.conf; if [ -a $FILE ]; then /bin/rm -f $FILE; fi |
93 |
-#/bin/chown -R www:www /var/lib/zarafa/z-push/state |
94 |
-/bin/rm -f /etc/httpd/conf.d/zarafa-webaccess.conf |
95 |
|
96 |
|