6 lines
187 B
Bash
6 lines
187 B
Bash
#!/bin/bash
|
|
|
|
sleep $(expr $RANDOM % 7200)
|
|
# Only restart spamd if sa-update returns 0, meaning it updated the rules
|
|
/usr/bin/sa-update && /etc/init.d/spamassassin condrestart > /dev/null
|