#!/bin/sh set -e case "$1" in remove|upgrade|deconfigure) if [ -x /etc/init.d/emalibre ]; then invoke-rc.d emalibre stop fi ;; esac exit 0