From owner-freebsd-rc@FreeBSD.ORG Thu Jul 21 23:01:30 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 548B716A42C for ; Thu, 21 Jul 2005 23:01:30 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4185743D6E for ; Thu, 21 Jul 2005 23:01:29 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j6LN1NdD020979; Thu, 21 Jul 2005 16:01:23 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j6LN1N98020978; Thu, 21 Jul 2005 16:01:23 -0700 Date: Thu, 21 Jul 2005 16:01:23 -0700 From: Brooks Davis To: Paul Schmehl Message-ID: <20050721230123.GA19090@odin.ac.hmc.edu> References: <468B58E789145A1C6885EA66@utd59514.utdallas.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <468B58E789145A1C6885EA66@utd59514.utdallas.edu> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-rc@freebsd.org Subject: Re: New port startup script fails X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 23:01:30 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 21, 2005 at 05:50:12PM -0500, Paul Schmehl wrote: > I'm working on a new port, and I decided to use the new rc.subr type=20 > startup script. After I wrote the script, I started testing it. The=20 > program started fine, but neither stop nor status worked. I read man (8)= =20 > rc.subr and studied the script (/etc/rc.subr). >=20 > The program was creating a pid file with the correct name in /var/run, bu= t=20 > for some reason, the stop and status commands apparently couldn't find?= =20 > read? the file. Is there a way to troubleshoot this problem to pin down= =20 > exactly were the problem is? Far too many things could be wrong for us to do more than speculate. Please send the script in question. A couple of ideas. First, are you setting the pidfile variable? If not, you may need to. Second, does the program in question change it's name? If so, you may have to implement stop and status by hand. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFC4ClCXY6L6fI4GtQRApjdAJ435s7AOaHNW9N9FkWgHln1TUShdwCdFHI6 6wQ17Bb7lstgl3Tn3IBM6TI= =ZzbY -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--