/etc/spamassassin/sa-update-hooks.d/amavisd-new is in amavisd-new 1:2.10.1-2ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 | #!/bin/sh
#This scripts restarts amavisd-new after spamassassin
#rules got updated
NAME=amavisd-new
AMAVISPID=/var/run/amavis/amavisd.pid
INIT=/etc/init.d/amavis
# stolen from dhcpd3 initscript
# single arg is -v for messages, -q for none
check_status()
{
if [ ! -r "$AMAVISPID" ]; then
test "$1" != -v || echo "$NAME is not running."
return 3
fi
if read pid < "$AMAVISPID" && ps -p "$pid" > /dev/null 2>&1; then
test "$1" != -v || echo "$NAME is running."
return 0
else
test "$1" != -v || echo "$NAME is not running but $AMAVISPID exists."
return 1
fi
}
#exit if amavis is not running
check_status || exit
$INIT restart > /dev/null
|