diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-11-29 16:17:22 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-11-29 16:17:22 +0000 |
commit | c1772089f86ba9270984f4ebe00673c828c9f8d7 (patch) | |
tree | 7707411078727eb06588360211a8d5fa16de76f0 /mail/gld | |
parent | 4bbc87607f6a7de0c55db7cc708fb6e9da896783 (diff) | |
download | pkgsrc-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.sh | 4 |
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 |