summaryrefslogtreecommitdiff
path: root/sysutils/swapd
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 /sysutils/swapd
parent12650cf97258010631598ef63a0d7998c879b7a4 (diff)
downloadpkgsrc-8d9d66b48ad76fab7160041026ab0f65c6ccac26.tar.gz
Don't overwrite $pidfile if the command is "status" or "stop".
Diffstat (limited to 'sysutils/swapd')
-rw-r--r--sysutils/swapd/files/swapd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/swapd/files/swapd.sh b/sysutils/swapd/files/swapd.sh
index 73631f6ceae..f32a52ecfa0 100644
--- a/sysutils/swapd/files/swapd.sh
+++ b/sysutils/swapd/files/swapd.sh
@@ -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 @@ sig_stop="KILL"
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