mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-01 06:32:51 +02:00
system/clamav: Fixed logging location of freshclam in rc.clamav.
Send SIGHUP to freshclam too in the logrotate script Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
edfe34bebc
commit
86b39d72bd
2 changed files with 3 additions and 2 deletions
|
@ -8,5 +8,6 @@
|
|||
missingok
|
||||
postrotate
|
||||
/bin/kill -HUP `cat /var/run/clamav/clamd.pid 2>/dev/null` 2>/dev/null || true
|
||||
/bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2>/dev/null` 2>/dev/null || true
|
||||
endscript
|
||||
}
|
||||
|
|
|
@ -20,8 +20,8 @@ clamav_start() {
|
|||
echo "."
|
||||
# Give clamd a chance to create the socket
|
||||
sleep 1
|
||||
echo -n "Starting freshclam daemon: /usr/bin/freshclam -d -l /var/log/freshclam.log "
|
||||
/usr/bin/freshclam -d -l /var/log/freshclam.log
|
||||
echo -n "Starting freshclam daemon: /usr/bin/freshclam -d -l /var/log/clamav/freshclam.log "
|
||||
/usr/bin/freshclam -d -l /var/log/clamav/freshclam.log
|
||||
echo "."
|
||||
if [ "$MILTER" == "1" ]; then
|
||||
echo -n "Starting clamav-milter daemon: /usr/sbin/clamav-milter -dblo --max-children=2 local:/var/run/clamav/clmilter.sock "
|
||||
|
|
Loading…
Reference in a new issue