summaryrefslogtreecommitdiff
path: root/rc.clamav/clamd/run
diff options
context:
space:
mode:
Diffstat (limited to 'rc.clamav/clamd/run')
-rw-r--r--rc.clamav/clamd/run13
1 files changed, 13 insertions, 0 deletions
diff --git a/rc.clamav/clamd/run b/rc.clamav/clamd/run
new file mode 100644
index 0000000..14a4538
--- /dev/null
+++ b/rc.clamav/clamd/run
@@ -0,0 +1,13 @@
+#!/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