Date: Thu, 11 Feb 2016 10:48:13 +0100 From: Lars Engels <lars.engels@0x20.net> To: Garrett Wollman <wollman@bimajority.org> Cc: freebsd-rc@freebsd.org Subject: Re: Good example for startup script with multiple "profiles"? Message-ID: <20160211094813.GR68362@e-new.0x20.net> In-Reply-To: <22203.48400.34474.502294@hergotha.csail.mit.edu> References: <22203.48400.34474.502294@hergotha.csail.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--CEMZpvf/LsJ++1SB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Wed, Feb 10, 2016 at 05:43:28PM -0500, Garrett Wollman wrote: > It's sometimes useful to have a single rc script start multiple copies > of the same service, using different options. (For example, and my > use case here, running a monitoring daemon with different parameters > on "inside" and "outside" network interfaces.) Is there a good > example I can crib from for how best to code this up while taking > maximal advantage of the rc.subr framework? The tomcat ports rc scripts have: # You may symlink this script with other names to run multiple # instances of tomcat8 with different configurations. --CEMZpvf/LsJ++1SB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJWvFjdXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tryIH/1U9DFI1n7nU90A13gqCRRvq cCibnZfh2yTBXYbbg+8KvraXYrmj6Shoey2wveIh4Y39Yc5jA36CPY6dXN4PmgTX 6Ryej0BYhAQz1emvmx9RgFRiQ+qVg592SFshZMutDv9bc22aueXpp6Gx/zXSGE4t 8bwx1tF37QPRfSpqaQjSjOjOzqBWJeO9KdWUa/bxyOkkpX7IQgeTUPTE2MVLy2RA mk3o11cP4qdclTGoP8QtVQWufpB85S4toSjwmcHhNYkUbkTNJbD9gP6Vl9sgOFe+ 0wxc3jwetkWiRRK4/S6jNa39zMpknDPyjiT8Fc9hg74cMcdDOpuG6tG5XlP4UQs= =2aqY -----END PGP SIGNATURE----- --CEMZpvf/LsJ++1SB--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160211094813.GR68362>