NetBSD Problem Report #18120

Received: (qmail 12512 invoked by uid 605); 30 Aug 2002 14:40:02 -0000
Message-Id: <18680-1030718401@rainier.reedmedia.net>
Date: Fri, 30 Aug 2002 07:40:01 -0700
From: reed@reedmedia.net
Sender: gnats-bugs-owner@netbsd.org
Reply-To: reed@reedmedia.net
To: gnats-bugs@gnats.netbsd.org
Subject: rc.d script doesn't tell the user if command is not executable
X-Send-Pr-Version: 3.95

>Number:         18120
>Category:       misc
>Synopsis:       rc.d scripts should report if command is missing or not executabale
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 30 14:41:00 +0000 2002
>Closed-Date:    
>Last-Modified:  Mon Jun 25 16:35:01 +0000 2012
>Originator:     
>Release:        NetBSD 1.5.3
>Organization:
http://bsd.reedmedia.net/
>Environment:


System: NetBSD rainier.reedmedia.net 1.5.3 NetBSD 1.5.3 (JCR-1.5-20020723) #0: Tue Jul 23 15:18:22 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-1.5-20020723 i386
Architecture: i386
Machine: i386
>Description:
If rc.d scripts command is not executable, then it should say
so instead of silently doing nothing.
>How-To-Repeat:
Have inetd removed and try to start it.

>Fix:
Simply report it.

 			if [ ! -x $command ]; then
+				warn "${command} is not executable."

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: misc-bug-people->lukem 
Responsible-Changed-By: lukem 
Responsible-Changed-When: Fri Jun 27 07:30:08 UTC 2003 
Responsible-Changed-Why:  
i'll investigate 
Responsible-Changed-From-To: lukem->misc-bug-people
Responsible-Changed-By: lukem@NetBSD.org
Responsible-Changed-When: Sat, 16 Jun 2012 06:13:36 +0000
Responsible-Changed-Why:
Back to the general pool


From: Julian Fagir <gnrp@komkon2.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: misc/18120: rc.d scripts should report if command is missing or
 not executabale
Date: Mon, 25 Jun 2012 18:34:17 +0200

 --Sig_/VNaaSNXyFKxczhFCoR5Y=HB
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable

 Anyway, why isn't it considered a failure if the program is not executable
 (`return 0` afterwards)?
 And: Why does run_rc_command just return in most cases, but exits in case of
 non-existing pidfiles?

 --Sig_/VNaaSNXyFKxczhFCoR5Y=HB
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (GNU/Linux)

 iEYEARECAAYFAk/okwkACgkQc7h7cu1Hpp4pTACbBseP6lWvsNTQd+7kYL7l6Th3
 vXcAoI2SUZU0FPUU9mLZ02RoOLr5vuIR
 =BX3K
 -----END PGP SIGNATURE-----

 --Sig_/VNaaSNXyFKxczhFCoR5Y=HB--

>Unformatted:

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.