move socket file and pid from /var/run/clamav to /run/clamav

systemd switch [release 0.98.4-4mamba;Thu Jul 24 2014]
This commit is contained in:
2024-01-05 21:23:32 +01:00
parent c7a64c1fc3
commit bac9b0aa3f
6 changed files with 77 additions and 62 deletions

View File

@ -5,7 +5,7 @@
# chkconfig: 2345 80 30
# description: Clam AntiVirus Database Update Daemon.
# processname: freshclamd
# pidfile: /var/run/clamav/freshclam.pid
# pidfile: /run/clamav/freshclam.pid
# config: /etc/freshclam.conf
# config: /etc/clamd.conf
@ -14,17 +14,14 @@
NAME=freshclam
DAEMON=/usr/bin/$NAME
DAEMONPID=/var/run/clamav/$NAME.pid
DAEMONPID=/run/clamav/$NAME.pid
DAEMONCONF=/etc/freshclam.conf
OPTIONS="--config-file=$DAEMONCONF --quiet --daemon --pid=/var/run/clamav/freshclam.pid"
OPTIONS="--config-file=$DAEMONCONF --quiet --daemon --pid=/run/clamav/freshclam.pid"
CLAMVDCONF=/etc/clamd.conf
[ -x $DAEMON ] || exit 0
# Source networking configuration.
[ -r /etc/sysconfig/network ] && . /etc/sysconfig/network
[ -r /etc/sysconfig/$NAME ] && . /etc/sysconfig/$NAME
# check if the clamv conf file is present