]> git.pld-linux.org Git - packages/clamav.git/blob - clamav-pld_config.patch
- Fixed bogus NotifyClamd entry. Reported by Andrzej Zawadzki. STBR for Ra
[packages/clamav.git] / clamav-pld_config.patch
1 diff -urN clamav-0.66.org/etc/clamav.conf clamav-0.66/etc/clamav.conf
2 --- clamav-0.66.org/etc/clamav.conf     Wed Feb 11 11:51:14 2004
3 +++ clamav-0.66/etc/clamav.conf Wed Feb 11 11:52:00 2004
4 @@ -5,12 +5,12 @@
5  
6  
7  # Comment or remove the line below.
8 -Example
9 +# Example
10  
11  # Uncomment this option to enable logging.
12  # LogFile must be writable for the user running the daemon.
13  # Full path is required.
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 @@ -34,14 +34,14 @@
20  #LogClean
21  
22  # Use system logger (can work together with LogFile).
23 -#LogSyslog
24 +LogSyslog
25  
26  # Enable verbose logging.
27  #LogVerbose
28  
29  # This option allows you to save the process identifier of the listening
30  # daemon (main thread).
31 -#PidFile /var/run/clamd.pid
32 +PidFile /var/run/clamav/clamd.pid
33  
34  # Optional path to the global temporary directory.
35  # Default is system specific - usually /var/tmp or /tmp.
36 @@ -58,10 +58,10 @@
37  # Path to the local socket. The daemon doesn't change the mode of the
38  # created file (portability reasons). You may want to create it in a directory
39  # which is only accessible for a user running daemon.
40 -LocalSocket /tmp/clamd
41 +LocalSocket /var/lib/clamav/clamd.socket
42  
43  # Remove stale socket after unclean shutdown.
44 -#FixStaleSocket
45 +FixStaleSocket
46  
47  # TCP port address.
48  #TCPSocket 3310
49 @@ -86,7 +86,7 @@
50  # Maximal number of a threads running at the same time.
51  # Default is 5, and it should be sufficient for a typical workstation.
52  # You may need to increase threads number for a server machine.
53 -#MaxThreads 10
54 +MaxThreads 10
55  
56  # Thread (scanner - single task) will be stopped after this time (seconds).
57  # Default is 180. Value of 0 disables the timeout. SECURITY HINT: Increase the
58 @@ -119,11 +119,11 @@
59  
60  # Run as selected user (clamd must be started by root).
61  # By default it doesn't drop privileges.
62 -#User clamav
63 +User clamav
64  
65  # Initialize the supplementary group access (for all groups in /etc/group
66  # user is added in. clamd must be started by root).
67 -#AllowSupplementaryGroups
68 +AllowSupplementaryGroups
69  
70  # Don't fork into background. Useful in debugging.
71  #Foreground
72 @@ -136,7 +136,7 @@
73  ##
74  
75  # Uncomment this option if you are planning to scan mail files.
76 -#ScanMail
77 +ScanMail
78  
79  ##
80  ## Archive support
81 diff -urN clamav-0.66.org/etc/freshclam.conf clamav-0.66/etc/freshclam.conf
82 --- clamav-0.66.org/etc/freshclam.conf  Wed Feb 11 11:51:14 2004
83 +++ clamav-0.66/etc/freshclam.conf      Wed Feb 11 12:47:55 2004
84 @@ -3,20 +3,24 @@
85  ## Please read the clamav.conf(5) manual before editing this file.
86  ## This file may be optionally merged with clamav.conf.
87  ##
88 -
89 +## PLD NOTE: Note that freshclam is called periodically via cron
90 +## Check /etc/sysconfig/clamd for details
91 +## Seems better to run task once per period than keep daemon running
92 +## only for that. 
93 +## But if you have arguments please tell us.
94  
95  # You can change the default database directory here.
96  #DatabaseDirectory /var/lib/clamav
97  
98  # Path to the log file (make sure it has proper permissions)
99 -#UpdateLogFile /var/log/freshclam.log
100 +UpdateLogFile /var/log/freshclam.log
101  
102  # Enable verbose logging.
103 -#LogVerbose
104 +LogVerbose
105  
106  # By default when freshclam is started by root it drops privileges and
107  # switches to the "clamav" user. You can change this behaviour here.
108 -#DatabaseOwner clamav
109 +DatabaseOwner clamav
110  
111  # The main database mirror is database.clamav.net (this is a round-robin
112  # DNS that points to many mirrors on the world) and in most cases you
113 @@ -28,7 +32,7 @@
114  
115  # How often check for a new database. We suggest checking for it every
116  # two hours.
117 -Checks 12
118 +Checks 2
119  
120  # Proxy settings
121  #HTTPProxyServer myproxy.com
122 @@ -38,6 +42,7 @@
123  
124  # Send the RELOAD command to clamd.
125  #NotifyClamd [/optional/config/file/path]
126 +NotifyClamd /etc/clamav.conf
127  
128  # Run command after database update.
129  #OnUpdateExecute command
This page took 3.1757 seconds and 4 git commands to generate.