summaryrefslogtreecommitdiff
path: root/rc.clamav/clamd/run
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-06-25 11:24:47 +0200
committerEugen Wissner <belka@caraus.de>2025-06-25 11:25:35 +0200
commit3bc4d1c00e6499da664f7d1f43551dd7818e4fc2 (patch)
tree4e69ecd463332a628d1e1f703c44be9d39092141 /rc.clamav/clamd/run
parenta32eb01f97e3ee98b5c049270f9eca97c407dd0b (diff)
downloads6-3bc4d1c00e6499da664f7d1f43551dd7818e4fc2.tar.gz
Add clamav
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