[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: LSB-ish init script, RFC



Colin Walters wrote:
On Fri, 2008-02-15 at 18:32 +0100, Nicolas Mailhot wrote:

It's not. Many daemons can be multi-instanciated (just from the top of
my head clamav & tomcat, would want this too)

Nothing wrong with that - but if you want to do this, the right thing to
do in the new init system should be to create a new toplevel service for
each instance.

/etc/init.d/tomcat-testing:
exec /usr/bin/tomcat /etc/tomcat/testing.conf

/etc/init.d/tomcat-production:
exec /usr/bin/tomcat /etc/tomcat/production.conf

There's a bunch of interesting things in Upstart that let you achieve these kinds of goals. Services which take arguments as one example.

--CJD


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]