1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-ldap-5.2.0/root/var/service/ldap/log/run mezzanine_patched_e-smith-ldap-5.2.0/root/var/service/ldap/log/run |
2 |
--- e-smith-ldap-5.2.0/root/var/service/ldap/log/run 1970-01-01 01:00:00.000000000 +0100 |
3 |
+++ mezzanine_patched_e-smith-ldap-5.2.0/root/var/service/ldap/log/run 2010-09-22 20:23:20.000000000 +0200 |
4 |
@@ -0,0 +1,28 @@ |
5 |
+#!/bin/sh |
6 |
+ |
7 |
+#---------------------------------------------------------------------- |
8 |
+# copyright (C) 2010 Firewall-Services |
9 |
+# daniel@firewall-services.com |
10 |
+# |
11 |
+# This program is free software; you can redistribute it and/or modify |
12 |
+# it under the terms of the GNU General Public License as published by |
13 |
+# the Free Software Foundation; either version 2 of the License, or |
14 |
+# (at your option) any later version. |
15 |
+# |
16 |
+# This program is distributed in the hope that it will be useful, |
17 |
+# but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 |
+# GNU General Public License for more details. |
20 |
+# |
21 |
+# You should have received a copy of the GNU General Public License |
22 |
+# along with this program; if not, write to the Free Software |
23 |
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 |
+# |
25 |
+# Technical support for this program is available from Mitel Networks |
26 |
+# Please visit our web site www.mitel.com/sme/ for details. |
27 |
+#---------------------------------------------------------------------- |
28 |
+exec \ |
29 |
+ /usr/local/bin/setuidgid smelog \ |
30 |
+ /usr/local/bin/multilog t s16777215 n20 \ |
31 |
+ /var/log/ldap |
32 |
+ |
33 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-ldap-5.2.0/root/var/service/ldap/run mezzanine_patched_e-smith-ldap-5.2.0/root/var/service/ldap/run |
34 |
--- e-smith-ldap-5.2.0/root/var/service/ldap/run 2010-09-22 20:24:19.000000000 +0200 |
35 |
+++ mezzanine_patched_e-smith-ldap-5.2.0/root/var/service/ldap/run 2010-09-22 20:24:04.000000000 +0200 |
36 |
@@ -1,8 +1,12 @@ |
37 |
#! /bin/sh |
38 |
|
39 |
+exec 2>&1 |
40 |
+ |
41 |
domain=$(/sbin/e-smith/config get DomainName) |
42 |
old_domain=$(readlink ldif) |
43 |
|
44 |
+loglevel=$(config getprop ldap LogLevel || echo 256) |
45 |
+ |
46 |
./control/1 |
47 |
|
48 |
if [ -n "$old_domain" ] |
49 |
@@ -55,4 +59,4 @@ |
50 |
fi |
51 |
|
52 |
# Now run daemon |
53 |
-exec /usr/sbin/slapd -4 -u ldap -d 0 -h "ldap:/// ldaps:/// ldapi:///" |
54 |
+exec /usr/sbin/slapd -4 -u ldap -d $loglevel -s 0 -h "ldap:/// ldaps:/// ldapi:///" |