mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/clamav: /var/run/clamav/ must exist, so create in rc.clamav
This is for the admins who decide to symlink /var/run to /run (thereby putting the piddir on a tmpfs, which does not survive reboots)... Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
4825bf48e5
commit
56c2b26f96
2 changed files with 6 additions and 1 deletions
|
@ -150,7 +150,9 @@ done
|
|||
install -D -m 0755 $CWD/rc.clamav $PKG/etc/rc.d/rc.clamav.new
|
||||
install -D -m 0644 $CWD/logrotate.clamav $PKG/etc/logrotate.d/clamav
|
||||
|
||||
# Create pid, socket, db and log directories
|
||||
# Create pid, socket, db, and log directories
|
||||
# init script must still ensure that /var/run/clamav exists
|
||||
# and has proper ownership and permissions though
|
||||
mkdir -p $PKG/var/{lib,log,run}/clamav
|
||||
chmod 771 $PKG/var/{lib,log,run}/clamav
|
||||
|
||||
|
|
|
@ -13,6 +13,9 @@ MILTER=0
|
|||
clamav_start() {
|
||||
if [ -x /usr/sbin/clamd ]; then
|
||||
echo -n "Starting clamd daemon: /usr/sbin/clamd "
|
||||
mkdir -p /var/run/clamav/
|
||||
chown clamav:clamav /var/run/clamav/
|
||||
chmod 771 /var/run/clamav/
|
||||
/usr/sbin/clamd
|
||||
echo "."
|
||||
# Give clamd a chance to create the socket
|
||||
|
|
Loading…
Reference in a new issue