e20d94225a
Move configuration file to $PREFIX/etc/smokeping. Use $PREFIX/var/smokeping for PID file and generated data.
24 lines
656 B
Bash
24 lines
656 B
Bash
#!/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
|