![kueller](/assets/img/avatar_default.png)
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_clamav@4354 504e572c-2e33-0410-9681-be2bf7408885
35 lines
517 B
Bash
35 lines
517 B
Bash
#!/bin/sh
|
|
|
|
source /etc/init.d/functions
|
|
|
|
case "$1" in
|
|
start)
|
|
echo "Starting clamd"
|
|
loadproc /usr/sbin/clamd
|
|
|
|
if [ -f /usr/sbin/clamav-milter ]; then
|
|
echo "Starting milter"
|
|
loadproc /usr/sbin/clamav-milter
|
|
fi
|
|
;;
|
|
stop)
|
|
if [ -f /usr/sbin/clamav-milter ]; then
|
|
echo "Stopping milter"
|
|
killproc /usr/sbin/clamav-milter
|
|
fi
|
|
|
|
echo "Stopping clamd"
|
|
killproc /usr/sbin/clamd
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
sleep 1
|
|
$0 start
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
esac
|
|
|
|
exit 0
|