1 |
dungog |
1.1 |
--- smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services.services 2008-12-20 18:25:17.000000000 +1100 |
2 |
|
|
+++ smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services 2008-12-20 18:25:27.000000000 +1100 |
3 |
|
|
@@ -4,5 +4,6 @@ |
4 |
|
|
/etc/rc.d/init.d/zarafa-ical $1 |
5 |
|
|
/etc/rc.d/init.d/zarafa-licensed $1 |
6 |
|
|
/etc/rc.d/init.d/zarafa-monitor $1 |
7 |
|
|
-/etc/rc.d/init.d/zarafa-spooler $1 |
8 |
|
|
/etc/rc.d/init.d/zarafa-server $1 |
9 |
|
|
+/etc/rc.d/init.d/zarafa-spooler $1 |
10 |
|
|
+ |
11 |
|
|
--- smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services-stop.services 2008-12-20 18:24:21.000000000 +1100 |
12 |
|
|
+++ smeserver-zarafa-0.9.0/root/etc/e-smith/events/actions/zarafa-services-stop 2008-12-20 18:31:41.000000000 +1100 |
13 |
|
|
@@ -0,0 +1,8 @@ |
14 |
|
|
+#!/bin/sh |
15 |
|
|
+ |
16 |
|
|
+/etc/rc.d/init.d/zarafa-gateway stop |
17 |
|
|
+/etc/rc.d/init.d/zarafa-ical stop |
18 |
|
|
+/etc/rc.d/init.d/zarafa-licensed stop |
19 |
|
|
+/etc/rc.d/init.d/zarafa-monitor stop |
20 |
|
|
+/etc/rc.d/init.d/zarafa-spooler stop |
21 |
|
|
+/etc/rc.d/init.d/zarafa-server stop |
22 |
|
|
--- smeserver-zarafa-0.9.0/root/etc/e-smith/templates-user/.qmail-junkmail/00DeliverToZarafa.services 2008-12-20 19:12:26.000000000 +1100 |
23 |
|
|
+++ smeserver-zarafa-0.9.0/root/etc/e-smith/templates-user/.qmail-junkmail/00DeliverToZarafa 2008-12-20 19:13:43.000000000 +1100 |
24 |
|
|
@@ -1,6 +1,13 @@ |
25 |
|
|
{ |
26 |
|
|
- my $zarafa = $user->prop('zarafa') || 'enabled'; |
27 |
|
|
- return "| /usr/bin/zarafa-dagent -qj $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;" |
28 |
|
|
+ # vim: ft=perl: |
29 |
|
|
+ die "USERNAME not set." unless defined ($USERNAME); |
30 |
|
|
+ |
31 |
|
|
+ use esmith::AccountsDB; |
32 |
|
|
+ $adb = esmith::AccountsDB->open_ro or die "Couldn't open AccountsDB"; |
33 |
|
|
+ |
34 |
|
|
+ $user = $adb->get($USERNAME) or die "No user $USERNAME in AccountsDB"; |
35 |
|
|
+ |
36 |
|
|
+ my $zarafa = $user->prop('zarafa') || 'enabled'; |
37 |
|
|
+ return "| /usr/bin/zarafa-dagent -qj $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;" |
38 |
|
|
if ($zarafa eq 'enabled'); |
39 |
|
|
} |
40 |
|
|
- |