diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2003-10-25 20:52:32 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2003-10-25 20:52:32 +0000 |
commit | 0f72f48cd64e20bf0bbaa1d29337f6208af5afbc (patch) | |
tree | 63cc5ba45603846322be3a561a35ed1c2c38b486 /security/clamav/files | |
parent | Add a patch to properly obtain the character set on -STABLE. (diff) |
- ensure that an stale clamd socket will be deleted. [1]
- Add conflict with clamav-devel port [2]
- fix milter on STABLE [3]
no response from maintainer
PR: 57379, 58037
Submitted by: martin@mail.tradex.sk [1], rob@debank.tv [2], dinoex [3]
Diffstat (limited to 'security/clamav/files')
-rw-r--r-- | security/clamav/files/clamd.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/security/clamav/files/clamd.sh b/security/clamav/files/clamd.sh index 3254acb2a0cb..9a5fe99cb911 100644 --- a/security/clamav/files/clamd.sh +++ b/security/clamav/files/clamd.sh @@ -26,6 +26,16 @@ pidfile=/var/run/clamav/clamd.pid required_dirs=%%DATADIR%% required_files=%%PREFIX%%/etc/clamav.conf +start_precmd=start_precmd + +start_precmd() +{ + if [ -S "$clamd_socket" ]; then + warn "Stale socket $clamd_socket removed." + rm "$clamd_socket" + fi +} + stop_postcmd=stop_postcmd stop_postcmd() @@ -37,6 +47,7 @@ stop_postcmd() clamd_enable=${clamd_enable:-"NO"} clamd_flags=${clamd_flags:-""} +clamd_socket=${clamd_socket:-"%%CLAMD_SOCKET%%"} load_rc_config $name run_rc_command "$1" |