~ubuntu-branches/ubuntu/breezy/clamav/breezy-backports

« back to all changes in this revision

Viewing changes to contrib/init/Solaris10/clamav-milter

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2005-09-19 09:05:59 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050919090559-hikpqduq8yx5qxo2
Tags: 0.87-1
* New upstream version
  - Fixes CAN-2005-2920 and CAN-2005-2919 (closes: #328660)
* New logcheck line for clamav-daemon (closes: #323132)
* relibtoolize and apply kfreebsd patch (closes: #327707)
* Make sure init.d script starts freshclam up again after upgrade when run
  from if-up.d (closes: #328912)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
CLAMAV_MILTER_FLAGS="-o --max-children=2 local:/var/run/clamav/clmilter.sock"
 
4
 
 
5
case "$1" in
 
6
        start)
 
7
                /usr/local/sbin/clamav-milter $CLAMAV_MILTER_FLAGS
 
8
                ;;
 
9
        stop)
 
10
                kill `ps -ef | awk '$NF ~ /clamav-milter/ { print $2 }'` > /dev/null 2>&1
 
11
                ;;
 
12
        *)
 
13
                echo "usage: $0 {start|stop}"
 
14
esac