]> git.pld-linux.org Git - packages/clamav.git/blob - clamav-pld_config.patch
2713ce739542bbea0497a506478086a3065becb6
[packages/clamav.git] / clamav-pld_config.patch
1 --- clamav-0.66.org/etc/clamav.conf     Wed Feb 11 11:51:14 2004
2 +++ clamav-0.66/etc/clamav.conf Wed Feb 11 11:52:00 2004
3 @@ -5,12 +5,12 @@
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 the daemon.
12  # Full path is required.
13 -#LogFile /tmp/clamd.log
14 +# LogFile /var/log/clamd.log
15  
16  # By default the log file is locked for writing - the lock protects against
17  # running clamd multiple times (if want to run another clamd, please
18 @@ -34,7 +34,7 @@
19  #LogClean
20  
21  # Use system logger (can work together with LogFile).
22 -#LogSyslog
23 +LogSyslog
24  
25  # Specify the type of syslog messages - please refer to 'man syslog'
26  # for facility names. Default is LOG_LOCAL6.
27 @@ -45,7 +45,7 @@
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 @@ -62,10 +62,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 @@ -90,7 +90,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  # Waiting for data from a client socket will timeout after this time (seconds).
57  # Default is 120. Value of 0 disables the timeout.
58 @@ -118,11 +118,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 @@ -145,7 +145,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 --- clamav-0.70/etc/freshclam.conf.orig 2004-04-17 00:42:13.000000000 +0200
82 +++ clamav-0.70/etc/freshclam.conf      2004-04-20 04:22:51.208555704 +0200
83 @@ -3,6 +3,11 @@
84  ## Please read the clamav.conf(5) manual before editing this file.
85  ## This file may be optionally merged with clamav.conf.
86  ##
87 +## PLD NOTE: Note that freshclam is called periodically via cron
88 +## Check /etc/sysconfig/clamd for details
89 +## Seems better to run task once per period than keep daemon running
90 +## only for that. 
91 +## But if you have arguments please tell us.
92  
93  # It should match clamav.conf's directive ! (in most cases you shouldn't
94  # change it)
95 @@ -12,10 +17,10 @@
96  #UpdateLogFile /var/log/freshclam.log
97  
98  # Enable verbose logging.
99 -#LogVerbose
100 +LogVerbose
101  
102  # Use system logger (can work together with UpdateLogFile).
103 -#LogSyslog
104 +LogSyslog
105  
106  # Specify the type of syslog messages - please refer to 'man syslog'
107  # for facility names. Default is LOG_LOCAL6.
108 @@ -23,7 +28,7 @@
109  
110  # By default when freshclam is started by root it drops privileges and
111  # switches to the "clamav" user. You can change this behaviour here.
112 -#DatabaseOwner clamav
113 +DatabaseOwner clamav
114  
115  # The main database mirror is database.clamav.net (this is a round-robin
116  # DNS that points to many mirrors on the world) and in most cases you
117 @@ -35,7 +40,7 @@
118  
119  # How often check for a new database. We suggest checking for it every
120  # two hours.
121 -Checks 12
122 +Checks 2
123  
124  # Proxy settings
125  #HTTPProxyServer myproxy.com
126 @@ -45,6 +50,7 @@
127  
128  # Send the RELOAD command to clamd.
129  #NotifyClamd [/optional/config/file/path]
130 +NotifyClamd /etc/clamav.conf
131  
132  # Run command after database update.
133  #OnUpdateExecute command
This page took 0.065338 seconds and 2 git commands to generate.