-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathorg.macports.clamdscan.plist
35 lines (35 loc) · 1.82 KB
/
org.macports.clamdscan.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.macports.clamdscan</string>
<key>Program</key>
<string>/bin/bash</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>SCAN_TARGETS=("/") CLAMDSCAN_QUARANTINE=/opt/Quarantine CLAMDSCAN_LOG=/opt/local/var/log/clamav/clamdscan.log ; /opt/local/bin/clamdscan --reload && ( /bin/test -d $CLAMDSCAN_QUARANTINE || /bin/mkdir -p $CLAMDSCAN_QUARANTINE ) && ( /bin/test -d ${CLAMDSCAN_LOG%/*} || /bin/mkdir -p ${CLAMDSCAN_LOG%/*} ) && echo "Launch daemon org.macports.clamdscan started on `/bin/date` …" >> $CLAMDSCAN_LOG && ( /opt/local/bin/clamdscan --multiscan --quiet --fdpass --move=$CLAMDSCAN_QUARANTINE --log=$CLAMDSCAN_LOG "${SCAN_TARGETS[@]}" && echo "Launch daemon org.macports.clamdscan completed on `/bin/date`." >> $CLAMDSCAN_LOG || echo "Launch daemon org.macports.clamdscan exited with error code $? on `/bin/date`." >> $CLAMDSCAN_LOG ) </string>
</array>
<key>RunAtLoad</key>
<false/>
<key>Nice</key>
<integer>15</integer>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Weekday</key>
<integer>7</integer>
<key>Hour</key>
<integer>2</integer>
<key>Minute</key>
<integer>00</integer>
</dict>
</array>
<key>StandardErrorPath</key>
<string>/var/log/system.log</string>
<key>StandardOutPath</key>
<string>/var/log/system.log</string>
</dict>
</plist>