diff options
author | spz <spz@pkgsrc.org> | 2010-02-14 18:32:52 +0000 |
---|---|---|
committer | spz <spz@pkgsrc.org> | 2010-02-14 18:32:52 +0000 |
commit | 9f208e0f38a89448decb65e915d637aaa847abaf (patch) | |
tree | dc85f41a87a17363d9ff651d174662a91e05ad8b /net | |
parent | a883ca86bbd1cbb948185747a81ea2720a4fe1e0 (diff) | |
download | pkgsrc-9f208e0f38a89448decb65e915d637aaa847abaf.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')
-rw-r--r-- | net/xymonclient/Makefile | 3 | ||||
-rw-r--r-- | net/xymonclient/files/xymonclient.sh | 3 |
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" |