Re: Proposal: multi-instance and self-contained rc.d script

From: Alex Dupre <ale_at_FreeBSD.org>
Date: Mon, 01 Jul 2013 12:38:45 +0200
-----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-----
Received on Mon Jul 01 2013 - 08:38:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:39 UTC