summaryrefslogtreecommitdiff
path: root/amavis/spamassassin/sa-update-hooks.d/local-amavis-restart
blob: 2e84fe81c40ea16804a8222d39f858ed553fe208 (plain)
  1. #!/bin/sh
  2. set -e
  3. if which invoke-rc.d >/dev/null 2>&1; then
  4. invoke-rc.d amavis restart > /dev/null 2>&1
  5. else
  6. /etc/init.d/amavis restart > /dev/null 2>&1
  7. fi