summaryrefslogtreecommitdiff
path: root/net/xymonclient
diff options
context:
space:
mode:
authorspz <spz>2010-02-14 18:32:52 +0000
committerspz <spz>2010-02-14 18:32:52 +0000
commit512559f1903c8e1c1f9f1955663aef2f23272191 (patch)
treedc85f41a87a17363d9ff651d174662a91e05ad8b /net/xymonclient
parentc6d4ce8dfe5d7a6fa40f404a33f79d6a340ae56e (diff)
downloadpkgsrc-512559f1903c8e1c1f9f1955663aef2f23272191.tar.gz
startup file improvements: start as the right user, make sure we can use
the pid file when we run as a mere user
Diffstat (limited to 'net/xymonclient')
-rw-r--r--net/xymonclient/Makefile3
-rw-r--r--net/xymonclient/files/xymonclient.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/net/xymonclient/Makefile b/net/xymonclient/Makefile
index a7c11961b0b..45fe827cd1c 100644
--- a/net/xymonclient/Makefile
+++ b/net/xymonclient/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2010/02/14 16:11:11 spz Exp $
+# $NetBSD: Makefile,v 1.2 2010/02/14 18:32:52 spz Exp $
#
DISTNAME= xymon-4.3.0-beta2
PKGNAME= xymonclient-4.3.0b2
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hobbitmon/}
diff --git a/net/xymonclient/files/xymonclient.sh b/net/xymonclient/files/xymonclient.sh
index e2417e2cd29..fb177c7603a 100644
--- a/net/xymonclient/files/xymonclient.sh
+++ b/net/xymonclient/files/xymonclient.sh
@@ -19,7 +19,7 @@ name="xymonclient"
: ${xymon_pidfile:="/var/run/xymonclient.pid"}
rcvar=${name}
-xymon_user="xymon"
+xymonclient_user="xymon"
pidfile=${xymon_pidfile}
required_files="${xymon_launchcfg} ${xymon_clientcfg}"
command="@XYBINDIR@/client/hobbitlaunch"
@@ -44,6 +44,7 @@ xymon_precmd()
if [ ! -h $HOBBITCLIENTHOME/logs ]; then
ln -s @BBLOGDIR@ $HOBBITCLIENTHOME/logs
fi
+ touch ${xymon_pidfile} && chown ${xymonclient_user} ${xymon_pidfile}
}
start_precmd="xymon_precmd"