summaryrefslogtreecommitdiff
path: root/rc.clamav/freshclam/run
blob: ee50f9aa02f525e979d4af438843c36a01af7b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/execlineb -P

##################################################
# Start freshclam (a virus database update tool) #
##################################################

fdmove -c 2 1
s6-envdir env
multisubstitute {
  importas -u CMD CMD
  importas -usCd" " CMD_OPTS CMD_OPTS
}
s6-setuidgid clamav
exec -c $CMD $CMD_OPTS