Control: reassign -1 src:clamav 0.98.1+dfsg-1 On Mi, 07 mai 14, 20:43:13, Raphaël Hertzog wrote: > Source: clamav-milter > Version: 0.98.1+dfsg-1 > Severity: normal > Tags: patch > > I have setup my clamav-milter to work over a TCP socket: > > $ grep MilterSocket /etc/clamav/clamav-milter.conf > MilterSocket inet:10002@127.0.0.1 > MilterSocketGroup clamav > MilterSocketMode 666 > > But the status action of the init script incorrectly reports that the socket > is missing: > $ sudo /etc/init.d/clamav-milter status > [ ok ] clamav-milter is running. > [FAIL] clamav-milter is running but socket is missing ... failed! > > I suggest that this check should only be performed when the socket type > is "local", hence the following patch: > > --- /etc/init.d/clamav-milter 2014-03-20 05:00:16.000000000 +0100 > +++ /etc/init.d/clamav-milter 2012-12-14 13:51:44.637092001 +0100 > @@ -452,9 +452,11 @@ > status) > status_of_proc "$DAEMON" "$NAME" > ret=$? > - if [ $ret = 0 ] && [ ! -S $SOCKET_PATH ] ; then > - log_failure_msg "$NAME is running but socket is missing" > - exit 4 > + if [ "$SOCKET_TYPE" = "local" ]; then > + if [ $ret = 0 ] && [ ! -S $SOCKET_PATH ] ; then > + log_failure_msg "$NAME is running but socket is missing" > + exit 4 > + fi > fi > exit $ret > ;; > > Cheers, > > -- System Information: > Debian Release: jessie/sid > APT prefers unstable > APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, > 'experimental') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores) > Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash
-- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic http://nuvreauspam.ro/gpg-transition.txt
signature.asc
Description: Digital signature