aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/smokeping/pkg-deinstall
blob: 901e0c3182be07378cd88d27674e555df42ec1e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# $FreeBSD$
#

if [ -f ${PKG_PREFIX}/var/smokeping/smokeping.pid ]; then
    if [ -x ${PKG_PREFIX}/etc/rc.d/smokeping.sh ]; then
        ${PKG_PREFIX}/etc/rc.d/smokeping.sh stop > /dev/null
    fi
    rm ${PKG_PREFIX}/var/smokeping/smokeping.pid
fi

if [ "$2" != "POST-DEINSTALL" ]; then
    exit 0
fi

if [ -d ${PKG_PREFIX}/smokeping ]; then
    echo "----------------------------------------------------------------"
    echo "To delete your custom SmokePing configuration and all collected"
    echo "data permanently, use 'rm -R ${PKG_PREFIX}/smokeping'"
    echo "----------------------------------------------------------------"
fi

exit 0