/[smecontribs]/rpms/smeserver-zarafa/contribs7/smeserver-zarafa-0.9.0-services3.patch
ViewVC logotype

Annotation of /rpms/smeserver-zarafa/contribs7/smeserver-zarafa-0.9.0-services3.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sat Feb 13 12:00:26 2010 UTC (14 years, 8 months ago) by dungog
Branch: MAIN
CVS Tags: smeserver-zarafa-0_9_0-51_el4_sme, smeserver-zarafa-0_9_0-54_el4_sme, smeserver-zarafa-0_9_0-53_el4_sme, smeserver-zarafa-0_9_0-56_el4_sme, smeserver-zarafa-0_9_0-50_el4_sme, smeserver-zarafa-0_9_0-48_el4_sme, smeserver-zarafa-0_9_0-47_el4_sme, smeserver-zarafa-0_9_0-49_el4_sme, smeserver-zarafa-0_9_0-52_el4_sme, HEAD
* Sat Feb 13 2010 Stephen Noble <support@dungog.net> - 0.9-47
- fix service scripts [SME 5672]

1 dungog 1.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    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed