summaryrefslogtreecommitdiff
path: root/mail/gld
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-11-29 16:17:22 +0000
committerxtraeme <xtraeme>2004-11-29 16:17:22 +0000
commit8d9d66b48ad76fab7160041026ab0f65c6ccac26 (patch)
tree7707411078727eb06588360211a8d5fa16de76f0 /mail/gld
parent12650cf97258010631598ef63a0d7998c879b7a4 (diff)
downloadpkgsrc-8d9d66b48ad76fab7160041026ab0f65c6ccac26.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