aboutsummaryrefslogtreecommitdiff
path: root/debian/prerm
blob: a0e1dcb0a76a1d1862d2a43af81002e5f9d4c0c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
set -e

OUT=/dev/null
HOME=/var/www/fuss
SERVICE=fuss

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}/fuss.pid 1>${OUT} 2>&1 || :
    ;;

    upgrade|deconfigure)
    ;;

    failed-upgrade)
    ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0
bgstack15