#!/bin/sh

  if [ -x "/etc/init.d/apmonitord" ]; then
    if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
      invoke-rc.d apmonitord stop || exit $?
    else
      /etc/init.d/apmonitord stop || exit $?
    fi
  fi

  exit 0