summaryrefslogtreecommitdiff
path: root/mail/gld
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-11-29 16:17:22 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-11-29 16:17:22 +0000
commitc1772089f86ba9270984f4ebe00673c828c9f8d7 (patch)
tree7707411078727eb06588360211a8d5fa16de76f0 /mail/gld
parent4bbc87607f6a7de0c55db7cc708fb6e9da896783 (diff)
downloadpkgsrc-c1772089f86ba9270984f4ebe00673c828c9f8d7.tar.gz
Don't overwrite $pidfile if the command is "status" or "stop".
Diffstat (limited to 'mail/gld')
-rw-r--r--mail/gld/files/gld.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/gld/files/gld.sh b/mail/gld/files/gld.sh
index 4f532da2aa1..73e66ae020c 100644
--- a/mail/gld/files/gld.sh
+++ b/mail/gld/files/gld.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: gld.sh,v 1.2 2004/11/29 15:46:25 xtraeme Exp $
+# $NetBSD: gld.sh,v 1.3 2004/11/29 16:17:22 xtraeme Exp $
#
# PROVIDE: gld
@@ -15,7 +15,7 @@ command="@PREFIX@/bin/${name}"
required_files="@PKG_SYSCONFDIR@/$name.conf"
pidfile="@VARBASE@/run/${name}.pid"
-if [ "$1" != "stop" ]; then
+if [ "$1" != "stop" -o "$1" != "status" ]; then
echo $(check_process $command) > $pidfile
fi