diff options
author | Hanno Böck <hanno@gentoo.org> | 2004-01-22 09:31:17 +0000 |
---|---|---|
committer | Hanno Böck <hanno@gentoo.org> | 2004-01-22 09:31:17 +0000 |
commit | 5a899fae9515fa1fe7c2dad5c8af7de75d28dc37 (patch) | |
tree | 2332db6b2928dc26de46f162fe9f40c73e05745c /net-mail/clamav | |
parent | tidy oldest version (diff) | |
download | gentoo-2-5a899fae9515fa1fe7c2dad5c8af7de75d28dc37.tar.gz gentoo-2-5a899fae9515fa1fe7c2dad5c8af7de75d28dc37.tar.bz2 gentoo-2-5a899fae9515fa1fe7c2dad5c8af7de75d28dc37.zip |
clamav init.d-script fixes
Diffstat (limited to 'net-mail/clamav')
-rw-r--r-- | net-mail/clamav/ChangeLog | 5 | ||||
-rw-r--r-- | net-mail/clamav/files/clamd.rc | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/net-mail/clamav/ChangeLog b/net-mail/clamav/ChangeLog index e3c93b5362b8..a0ac8605e2ef 100644 --- a/net-mail/clamav/ChangeLog +++ b/net-mail/clamav/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-mail/clamav # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/clamav/ChangeLog,v 1.12 2004/01/20 19:03:02 hanno Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/clamav/ChangeLog,v 1.13 2004/01/22 09:31:17 hanno Exp $ + + 22 Jan 2004; Hanno Boeck <hanno@gentoo.org> files/clamd.rc: + Some fixes to the init.d-script. *clamav-0.65 (20 Jan 2004) diff --git a/net-mail/clamav/files/clamd.rc b/net-mail/clamav/files/clamd.rc index fd145eed07a9..a4f54a11ec1b 100644 --- a/net-mail/clamav/files/clamd.rc +++ b/net-mail/clamav/files/clamd.rc @@ -8,6 +8,9 @@ depend() { start() { if [ "${START_CLAMD}" = "yes" ]; then + if [ -f "/tmp/clamd" ]; then + rm -f /tmp/clamd + fi if [ -n "${CLAMD_LOG}" -a ! -f "${CLAMD_LOG}" ]; then touch "${CLAMD_LOG}" chown clamav:clamav "${CLAMD_LOG}" @@ -33,7 +36,7 @@ start() { stop() { if [ "${START_CLAMD}" = "yes" ]; then ebegin "Stopping clamd" - start-stop-daemon --stop --quiet --pidfile /var/run/clamd.pid + start-stop-daemon --stop --quiet --name clamd eend $? "Failed to stop clamd" fi if [ "${START_FRESHCLAM}" = "yes" ]; then |