]> git.pld-linux.org Git - packages/clamav.git/blob - clamav-pld_config.patch
- remove stale socket in config
[packages/clamav.git] / clamav-pld_config.patch
1 --- clamav-0.90rc2.pld/etc/clamd.conf   2006-11-05 17:18:53.305030378 +0200
2 +++ clamav-0.90rc2/etc/clamd.conf       2006-11-05 18:53:11.342468909 +0200
3 @@ -5,13 +5,13 @@
4  
5  
6  # Comment or remove the line below.
7 -Example
8 +#Example
9  
10  # Uncomment this option to enable logging.
11  # LogFile must be writable for the user running daemon.
12  # A full path is required.
13  # Default: disabled
14 -#LogFile /tmp/clamd.log
15 +#LogFile /var/log/clamd.log
16  
17  # By default the log file is locked for writing - the lock protects against
18  # running clamd multiple times (if want to run another clamd, please
19 @@ -40,7 +40,7 @@
20  
21  # Use system logger (can work together with LogFile).
22  # Default: no
23 -#LogSyslog yes
24 +LogSyslog yes
25  
26  # Specify the type of syslog messages - please refer to 'man syslog'
27  # for facility names.
28 @@ -54,7 +54,7 @@
29  # This option allows you to save a process identifier of the listening
30  # daemon (main thread).
31  # Default: disabled
32 -#PidFile /var/run/clamd.pid
33 +PidFile /var/run/clamav/clamd.pid
34  
35  # Optional path to the global temporary directory.
36  # Default: system specific (usually /tmp or /var/tmp).
37 @@ -69,11 +69,11 @@
38  
39  # Path to a local socket file the daemon will listen on.
40  # Default: disabled (must be specified by a user)
41 -LocalSocket /tmp/clamd
42 +LocalSocket /var/lib/clamav/clamd.socket
43  
44  # Remove stale socket after unclean shutdown.
45  # Default: no
46 -#FixStaleSocket yes
47 +FixStaleSocket yes
48  
49  # TCP port address.
50  # Default: no
51 @@ -141,11 +141,11 @@
52  
53  # Run as a selected user (clamd must be started by root).
54  # Default: don't drop privileges
55 -#User clamav
56 +User clamav
57  
58  # Initialize supplementary group access (clamd must be started by root).
59  # Default: no
60 -#AllowSupplementaryGroups no
61 +AllowSupplementaryGroups yes
62  
63  # Stop daemon when libclamav reports out of memory condition.
64  #ExitOnOOM yes
65 @@ -303,15 +303,15 @@
66  
67  # Set access mask for Clamuko.
68  # Default: no
69 -#ClamukoScanOnOpen yes
70 -#ClamukoScanOnClose yes
71 -#ClamukoScanOnExec yes
72 +ClamukoScanOnOpen yes
73 +ClamukoScanOnClose yes
74 +ClamukoScanOnExec yes
75  
76  # Set the include paths (all files in them will be scanned). You can have
77  # multiple ClamukoIncludePath directives but each directory must be added
78  # in a seperate line.
79  # Default: disabled
80 -#ClamukoIncludePath /home
81 +ClamukoIncludePath /home
82  #ClamukoIncludePath /students
83  
84  # Set the exclude paths. All subdirectories are also excluded.
85 --- clamav-0.90rc2/etc/freshclam.conf   2006-10-16 02:38:54.000000000 +0300
86 +++ clamav-0.90rc2.pld/etc/freshclam.conf       2006-11-05 17:19:32.115904497 +0200
87 @@ -2,10 +2,14 @@
88  ## Example config file for freshclam
89  ## Please read the freshclam.conf(5) manual before editing this file.
90  ##
91 -
92 +## PLD NOTE: Note that freshclam is called periodically via cron
93 +## Check /etc/sysconfig/clamd for details
94 +## Seems better to run task once per period than keep daemon running
95 +## only for that.
96 +## But if you have arguments please tell us.
97  
98  # Comment or remove the line below.
99 -Example
100 +#Example
101  
102  # Path to the database directory.
103  # WARNING: It must match clamd.conf's directive!
104 @@ -18,11 +22,11 @@
105  
106  # Enable verbose logging.
107  # Default: no
108 -#LogVerbose yes
109 +LogVerbose yes
110  
111  # Use system logger (can work together with UpdateLogFile).
112  # Default: no
113 -#LogSyslog yes
114 +LogSyslog yes
115  
116  # Specify the type of syslog messages - please refer to 'man syslog'
117  # for facility names.
118 @@ -36,7 +40,7 @@
119  # By default when started freshclam drops privileges and switches to the
120  # "clamav" user. This directive allows you to change the database owner.
121  # Default: clamav (may depend on installation options)
122 -#DatabaseOwner clamav
123 +DatabaseOwner clamav
124  
125  # Initialize supplementary group access (freshclam must be started by root).
126  # Default: no
127 @@ -66,7 +70,7 @@
128  
129  # Number of database checks per day.
130  # Default: 12 (every two hours)
131 -#Checks 24
132 +Checks 2
133  
134  # Proxy settings
135  # Default: disabled
136 @@ -88,7 +92,7 @@
137  
138  # Send the RELOAD command to clamd.
139  # Default: no
140 -#NotifyClamd /path/to/clamd.conf
141 +NotifyClamd /etc/clamd.conf
142  
143  # Run command after successful database update.
144  # Default: disabled
This page took 0.071418 seconds and 4 git commands to generate.