Date: Tue, 30 Sep 2003 11:20:17 -0700 (PDT) From: Oliver Eikemeier <eikemeier@fillmore-labs.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/57379: [FIX] security/clamav 0.60 Message-ID: <200309301820.h8UIKHt8039062@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/57379; it has been noted by GNATS. From: Oliver Eikemeier <eikemeier@fillmore-labs.com> To: freebsd-gnats-submit@FreeBSD.org, martin@tradex.sk Cc: Subject: Re: ports/57379: [FIX] security/clamav 0.60 Date: Tue, 30 Sep 2003 20:11:20 +0200 martin@tradex.sk wrote: > Try the following: > > Start clamd via rc_subr startup script. Kill the process with -9 signal (may > happen), the socket file is not deleted. Now try to start it again. > The process is NOT started because of existing socket file. But then you already had a problem (clamd was terminated by sigkill), and you should have a hint to investigate. I would prefer: start_precmd=start_precmd start_precmd() { if [ -S "%%CLAMD_SOCKET%%" ]; then warn "Stale socket %%CLAMD_SOCKET%% removed." rm "%%CLAMD_SOCKET%% fi } or, even better: start_precmd=start_precmd start_precmd() { if [ -S "%%CLAMD_SOCKET%%" ]; then warn "Stale socket %%CLAMD_SOCKET%%, clamd may already be running." return 1 fi }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309301820.h8UIKHt8039062>