Browse code

First version

git-svn: trunk@1173

Nigel Horne authored on 2004/12/13 05:15:02
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,39 @@
0
+# Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
1
+#
2
+# This program is free software; you can redistribute it and/or modify
3
+# it under the terms of the GNU General Public License as published by
4
+# the Free Software Foundation; either version 2 of the License, or
5
+# (at your option) any later version.
6
+#
7
+# This program is distributed in the hope that it will be useful,
8
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
+# GNU General Public License for more details.
11
+#
12
+# You should have received a copy of the GNU General Public License
13
+# along with this program; if not, write to the Free Software
14
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
+#
16
+# Install into /etc/clamav
17
+#
18
+# Add lines such as this to /etc/rc.conf
19
+#
20
+# clamd_enable="YES"
21
+# clamav_milter_enable="YES"
22
+# clamav_milter_flags="--max-children=2 --dont-wait --timeout=0 -P local:/var/run/clamav/clamav.sock --pidfile=/var/run/clamav/clamav-milter.pid --quarantine-dir=/var/run/clamav/quarantine"
23
+
24
+. /etc/rc.subr
25
+
26
+name="clamd"
27
+rcvar="`set_rcvar`"
28
+command="/usr/local/sbin/${name}"
29
+
30
+load_rc_config $name
31
+run_rc_command "$1"
32
+
33
+name="clamav_milter"
34
+rcvar="`set_rcvar`"
35
+command="/usr/local/sbin/clamav-milter"
36
+
37
+load_rc_config $name
38
+run_rc_command "$1"