NetBSD Problem Report #31060

From www@netbsd.org  Wed Aug 24 17:11:22 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 4F97F63B104; Wed, 24 Aug 2005 17:11:22 +0000 (UTC)
Message-Id: <20050824171122.4F97F63B104@narn.netbsd.org>
Date: Wed, 24 Aug 2005 17:11:22 +0000 (UTC)
From: eravin@panix.com
Reply-To: eravin@panix.com
To: gnats-bugs@netbsd.org
Subject: /etc/rc.d/ntpdate and virecover  have "status" commands when they shouldn't
X-Send-Pr-Version: www-1.0

>Number:         31060
>Category:       bin
>Synopsis:       /etc/rc.d/ntpdate and virecover  have "status" commands when they shouldn't
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 24 17:12:00 +0000 2005
>Originator:     Ed Ravin
>Release:        2.0
>Organization:
Public Access Networks
>Environment:
NetBSD panix5.panix.com 2.0 NetBSD 2.0 (PANIX-USER) #3: Thu Jan 13 20:20:38 EST
2005  root@trinity.nyc.access.net:/devel/netbsd/2.0/src/sys/arch/i386/compile/PANIX-USER i386
>Description:
The rc.d scrpts ntpdate and virecover, have "status" commands even though there is no running daemon associated with the startup script (the two scripts, like /etc/rc.d/network or /etc/rc.d/ldconfig, perform boot-time tasks and do not start any daemons).  For example:

  root@localhost ~: # /etc/rc.d/virecover status
  virecover is not running.

It looks like this is happening because the variable "command"
is set in these scripts, and rc.subr, when it sees "command", assumes
there will be a running daemon.

>How-To-Repeat:

>Fix:
Don't use $command in those scripts - rename it to $onetimecommand
or the like.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.