pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc Don't overwrite $pidfile if the command is "status" or...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5aa42396392c
branches: trunk
changeset: 484760:5aa42396392c
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Mon Nov 29 16:17:22 2004 +0000
description:
Don't overwrite $pidfile if the command is "status" or "stop".
diffstat:
mail/gld/files/gld.sh | 4 ++--
sysutils/swapd/files/swapd.sh | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 56c0cfcc864b -r 5aa42396392c mail/gld/files/gld.sh
--- a/mail/gld/files/gld.sh Mon Nov 29 15:46:25 2004 +0000
+++ b/mail/gld/files/gld.sh Mon Nov 29 16:17:22 2004 +0000
@@ -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 @@
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
diff -r 56c0cfcc864b -r 5aa42396392c sysutils/swapd/files/swapd.sh
--- a/sysutils/swapd/files/swapd.sh Mon Nov 29 15:46:25 2004 +0000
+++ b/sysutils/swapd/files/swapd.sh Mon Nov 29 16:17:22 2004 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: swapd.sh,v 1.2 2004/11/05 16:19:58 xtraeme Exp $
+# $NetBSD: swapd.sh,v 1.3 2004/11/29 16:19:19 xtraeme Exp $
#
# PROVIDE: swapd
# REQUIRE: DAEMON LOGIN
@@ -17,6 +17,6 @@
load_rc_config $name
run_rc_command "$1"
-if [ "$1" != "stop" ]; then
+if [ "$1" != "stop" -o "$1" != "status" ]; then
echo $(check_process $command) > $pidfile
fi
Home |
Main Index |
Thread Index |
Old Index