Files
s6/rc.clamav/clamd/run
2025-06-25 11:25:35 +02:00

14 lines
318 B
Plaintext

#!/bin/execlineb -P
######################################
# Start clamd (an anti-virus daemon) #
######################################
fdmove -c 2 1
foreground { install -o clamav -g clamav -m 0771 -d /run/clamav }
s6-envdir env
importas -u CMD CMD
s6-notifyoncheck -d -w3750 -n16
s6-setuidgid clamav
exec -c $CMD