NetBSD Problem Report #31060

From  Wed Aug 24 17:11:22 2005
Return-Path: <>
Received: by (Postfix, from userid 31301)
	id 4F97F63B104; Wed, 24 Aug 2005 17:11:22 +0000 (UTC)
Message-Id: <>
Date: Wed, 24 Aug 2005 17:11:22 +0000 (UTC)
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
Public Access Networks
NetBSD 2.0 NetBSD 2.0 (PANIX-USER) #3: Thu Jan 13 20:20:38 EST
2005 i386
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.


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:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.