Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jul 2013 12:38:45 +0200
From:      Alex Dupre <ale@FreeBSD.org>
To:        freebsd-rc@FreeBSD.org, freebsd-current@FreeBSD.org
Subject:   Re: Proposal: multi-instance and self-contained rc.d script
Message-ID:  <51D15C35.3000200@FreeBSD.org>
In-Reply-To: <20130701.062953.1443190655468739608.hrs@allbsd.org>
References:  <20130701.062953.1443190655468739608.hrs@allbsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51D15C35.3000200>