aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/smokeping/pkg-deinstall
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-04-01 13:47:18 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-04-01 13:47:18 +0000
commite20d94225ac745485beadf59362f7fb1110c10a2 (patch)
tree72dca13399ada9e50ca8b5708f7c7e460643daae /net-mgmt/smokeping/pkg-deinstall
parent783c54116d30b300a54bd1b622d9ea4f44a0c61b (diff)
Add smokeping UID and GID if not exist and use them to be invoked as.
Move configuration file to $PREFIX/etc/smokeping. Use $PREFIX/var/smokeping for PID file and generated data.
Notes
Notes: svn path=/head/; revision=57137
Diffstat (limited to 'net-mgmt/smokeping/pkg-deinstall')
-rw-r--r--net-mgmt/smokeping/pkg-deinstall4
1 files changed, 2 insertions, 2 deletions
diff --git a/net-mgmt/smokeping/pkg-deinstall b/net-mgmt/smokeping/pkg-deinstall
index 65f707cb86d5..901e0c3182be 100644
--- a/net-mgmt/smokeping/pkg-deinstall
+++ b/net-mgmt/smokeping/pkg-deinstall
@@ -2,11 +2,11 @@
# $FreeBSD$
#
-if [ -f /var/run/smokeping.pid ]; then
+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 /var/run/smokeping.pid
+ rm ${PKG_PREFIX}/var/smokeping/smokeping.pid
fi
if [ "$2" != "POST-DEINSTALL" ]; then