#!/bin/sh set -e OUT=/dev/null HOME=/var/stackbin SERVICE=stackbin case "$1" in remove) test -x /usr/sbin/invoke-rc.d && \ INIT="invoke-rc.d ${SERVICE}" || \ INIT="/etc/init.d/${SERVICE}" ${INIT} stop ;; purge) rm -f ${HOME}/${SERVICE}-wsgi.pid 1>${OUT} 2>&1 || : ;; upgrade|deconfigure) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0