From owner-freebsd-current@FreeBSD.ORG Mon Jul 1 10:38:55 2013 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 69E89DC for ; Mon, 1 Jul 2013 10:38:55 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from relay.andxor.it (relay.andxor.it [195.223.2.3]) by mx1.freebsd.org (Postfix) with ESMTP id 77E061F80 for ; Mon, 1 Jul 2013 10:38:53 +0000 (UTC) Received: (qmail 14291 invoked from network); 1 Jul 2013 10:38:45 -0000 Received: from alex.andxor.it (a.premoli@andxor.it@192.168.2.30) by relay.andxor.it with ESMTPSA; 1 Jul 2013 10:38:45 -0000 Message-ID: <51D15C35.3000200@FreeBSD.org> Date: Mon, 01 Jul 2013 12:38:45 +0200 From: Alex Dupre User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17.1 MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: Proposal: multi-instance and self-contained rc.d script References: <20130701.062953.1443190655468739608.hrs@allbsd.org> In-Reply-To: <20130701.062953.1443190655468739608.hrs@allbsd.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2013 10:38:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hiroki Sato ha scritto: > 1. Multi-instance support > > In the implementation, load_rc_config() reads variables for all > instances and run_rc_command() runs each instance in order. When > doing "rc.d/foo stop", run_rc_command() stops the instances in > reverse order. I haven't looked at the implementation, but a useful feature that's usually missing is these multi-instance implementations and that is available in the multi-rc.d scripts scenario (take tomcat7 rc script as an example) is the ability to start/stop a single instance. Not always the instances are related each other, sometime they serve completely different purposes/applications and would be very useful to allow starting/stopping them independently. If we can get the best from the two implementations it'll be a win-win solution. > 2. Self-contained rc.d script I like the idea of defaults inside the scripts, but I like also a file that lists all available knobs with default values. If it can be automatically generated from the scripts for human reading purpose only, I'll appreciate it. - -- Alex Dupre -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlHRXDUACgkQgRXp2M5fVU2C5QCfbRJAmtDUwJVid45FyWU1TSgr SF4An26x5n4nq7qI12C57TdvaB9hFjuq =IErn -----END PGP SIGNATURE-----