Репозитории 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 Startup script for the Clam AntiVirus Daemon.
#
# chkconfig: 2345 75 25
# description: Clam AntiVirus Daemon is a TCP/IP or socket protocol \
# server.
# processname: clamd
# config: /etc/clamd.conf
# pidfile: /var/run/clamav/clamd.pid
# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1
# Source function library.
. /etc/init.d/functions
# Source clamd configuration.
SourceIfNotEmpty /etc/sysconfig/clamd
PIDFILE=/var/run/clamav/clamd.pid
LOCKFILE=/var/lock/subsys/clamd
RETVAL=0
start()
{
if [ ! -s /var/lib/clamav/main.cvd ]; then
/usr/bin/freshclam
fi
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user mail -- clamd
RETVAL=$?
return $RETVAL
}
stop()
{
stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user mail clamd
RETVAL=$?
return $RETVAL
}
restart()
{
stop
start
}
reload()
{
msg_reloading clamd
stop_daemon --pidfile "$PIDFILE" --expect-user mail -HUP -- clamd
RETVAL=$?
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
reload)
reload
;;
restart)
restart
;;
update)
/usr/bin/freshclam
;;
status)
status --pidfile "$PIDFILE" --expect-user mail -- clamd
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|update}"
RETVAL=1
esac
exit $RETVAL