The apmd rc script uses start-stop-daemon --stop --quiet --
pidfile /var/run/apmd.pid in it's stop() clause. However, apmd does not create
this pidfile on startup. Stopping apmd during shutdown fails.
Replacing the original start-stop-daemon line with "start-stop-daemon --stop --
quiet --exec /usr/sbin/apmd" in the stop() clause seems to do the trick :)
using --make-pidfile now.