]> git.pld-linux.org Git - packages/clamav.git/blame - clamav-pld_config.patch
- strict internal deps
[packages/clamav.git] / clamav-pld_config.patch
CommitLineData
5664ab19
MK
1diff -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
c935072a 4@@ -5,12 +5,12 @@
5664ab19 5
c935072a
MK
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
5664ab19 15+# LogFile /var/log/clamd.log
c935072a
MK
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
5664ab19
MK
19@@ -34,14 +34,14 @@
20 #LogClean
c935072a
MK
21
22 # Use system logger (can work together with LogFile).
23-#LogSyslog
24+LogSyslog
25
26 # Enable verbose logging.
5664ab19 27 #LogVerbose
c935072a
MK
28
29 # This option allows you to save the process identifier of the listening
30 # daemon (main thread).
31-#PidFile /var/run/clamd.pid
5664ab19
MK
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 @@
c935072a
MK
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
c935072a
MK
41+LocalSocket /var/lib/clamav/clamd.socket
42
e41d1146
MK
43 # Remove stale socket after unclean shutdown.
44-#FixStaleSocket
45+FixStaleSocket
46
c935072a
MK
47 # TCP port address.
48 #TCPSocket 3310
5664ab19
MK
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 @@
c935072a
MK
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
5664ab19 72@@ -136,7 +136,7 @@
c935072a
MK
73 ##
74
75 # Uncomment this option if you are planning to scan mail files.
76-#ScanMail
77+ScanMail
78
79 ##
80 ## Archive support
5664ab19
MK
81diff -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.
c935072a 87 ##
c935072a 88-
5664ab19
MK
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
7c023dc1 98 # Path to the log file (make sure it has proper permissions)
5664ab19
MK
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/rc.d/init.d/clamd reload
c935072a 127
5664ab19
MK
128 # Run command after database update.
129 #OnUpdateExecute command
This page took 0.36886 seconds and 4 git commands to generate.