diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-04-01 10:46:58 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-04-01 10:46:58 +0000 |
commit | e28e7b07f32c8de6ac188a9363d351ad3773f5a6 (patch) | |
tree | ca5685dd9de38327a4c14950821b4e7ae1795921 /net-mgmt/smokeping/pkg-deinstall | |
parent | 3ec81d2f4a6738fb164ee49ced400e0c570f525a (diff) | |
download | ports-e28e7b07f32c8de6ac188a9363d351ad3773f5a6.tar.gz ports-e28e7b07f32c8de6ac188a9363d351ad3773f5a6.zip |
Notes
Diffstat (limited to 'net-mgmt/smokeping/pkg-deinstall')
-rw-r--r-- | net-mgmt/smokeping/pkg-deinstall | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net-mgmt/smokeping/pkg-deinstall b/net-mgmt/smokeping/pkg-deinstall new file mode 100644 index 000000000000..65f707cb86d5 --- /dev/null +++ b/net-mgmt/smokeping/pkg-deinstall @@ -0,0 +1,23 @@ +#!/bin/sh +# $FreeBSD$ +# + +if [ -f /var/run/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 /var/run/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 |