]> git.pld-linux.org Git - packages/clamav.git/commitdiff
91ddae22888e0c48723976594746abd4 clamav-0.50.tar.gz clamav-0_50-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 5 Oct 2002 17:36:33 +0000 (17:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clamav.init -> 1.1
    clamav.sysconfig -> 1.1

clamav.init [new file with mode: 0644]
clamav.sysconfig [new file with mode: 0644]

diff --git a/clamav.init b/clamav.init
new file mode 100644 (file)
index 0000000..960ab24
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/sh
+#
+# clamd                clamd (antyvirus daemon)
+#
+# chkconfig:   345 60 40
+#
+# description: clamd (secure shell daemon) is a server part of the ssh suite.
+#              Ssh can be used for remote login, remote file copying, TCP port
+#              forwarding etc. Ssh offers strong encryption and authentication.
+
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+# Get network config
+. /etc/sysconfig/network
+
+# Get service config
+[ -f /etc/sysconfig/clamd ] && . /etc/sysconfig/clamd
+
+# See how we were called.
+case "$1" in
+  start)
+       # Check if the service is already running?
+       if [ ! -f /var/lock/subsys/clamd ]; then
+               msg_starting clamd
+               daemon /usr/sbin/clamd 
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamd               
+       else
+               msg_already_running clamd
+       fi
+       ;;
+  stop)
+        if [ -f /var/lock/subsys/clamd ]; then
+               msg_stopping clamd
+               killproc clamd
+               rm -f /var/run/clamd.pid /var/lock/subsys/clamd >/dev/null 2>&1
+       else
+               msg_not_running clamd
+               exit 1
+       fi      
+       ;;
+  restart)
+       $0 stop
+       $0 start
+       ;;
+  status)
+       status clamd
+       exit $?
+       ;;
+  reload)
+       msg_reloading clamd
+       killproc clamd -HUP
+       ;;
+  *)
+       msg_usage "$0 {start|stop|init|status|restart|reload}"
+       exit 1
+esac
+
+exit $RETVAL
diff --git a/clamav.sysconfig b/clamav.sysconfig
new file mode 100644 (file)
index 0000000..31f60a2
--- /dev/null
@@ -0,0 +1,4 @@
+# Customized setings
+
+# Define nice level
+SERVICE_RUN_NICE_LEVEL="+0"
This page took 0.042481 seconds and 4 git commands to generate.