Репозитории ALT
S: | 0.103.8-alt1 |
5.1: | 0.98.1-alt0.M51.1 |
4.1: | 0.97.8-alt0.M41.1 |
+updates: | 0.94.1-alt0.M41.1 |
4.0: | 0.97.8-alt0.M40.1 |
+updates: | 0.91.2-alt1 |
3.0: | 0.86.2-alt1 |
+updates: | 0.91.1-alt0.M30.1 |
+backports: | 0.93.3-alt0.M30.1 |
Другие репозитории
Upstream: | 0.93rc1 |
Группа :: Работа с файлами
Пакет: clamav
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
#!/bin/sh
#
# clamav-milter Startup script for the ClamAV Milter Daemon.
#
# chkconfig: 2345 76 24
# description: ClamAV Milter is a daemon which hooks into sendmail \
# and routes email messages to clamav.
# processname: clamav-milter
# config: /etc/sysconfig/clamav-milter
# pidfile: /var/run/clamav/clamav-milter.pid
# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1
# Source function library.
. /etc/init.d/functions
# Source clamav-milter configuration.
SourceIfNotEmpty /etc/sysconfig/clamav-milter
PIDFILE=/var/run/clamav/clamav-milter.pid
LOCKFILE=/var/lock/subsys/clamav-milter
RETVAL=0
start()
{
start_daemon --lockfile "$LOCKFILE" --expect-user mail -- clamav-milter ${CLAMAV_FLAGS}
RETVAL=$?
return $RETVAL
}
stop()
{
stop_daemon --lockfile "$LOCKFILE" --expect-user mail clamav-milter
RETVAL=$?
return $RETVAL
}
restart()
{
stop
sleep 1
start
}
reload()
{
msg_reloading clamav-milter
stop_daemon --expect-user mail -HUP -- clamav-milter
RETVAL=$?
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
reload)
reload
;;
restart)
restart
;;
status)
status --expect-user mail -- clamav-milter
RETVAL=$?
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
condreload)
if [ -e "$LOCKFILE" ]; then
reload
fi
;;
*)
msg_usage "${0##*/} {start|stop|restart|reload|condstop|condrestart|condreload|status}"
RETVAL=1
esac
exit $RETVAL