Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-22 Thread Andreas Barth
* Tollef Fog Heen (tfh...@err.no) [131221 13:57]: > sd-daemon.c is also intentionally designed to not have dependencies on > the rest of the systemd source and to be portable to non-linux > architectures too (but basically just stubs then) just so people can put > the file in their source and not h

Bug#727708: init multiple instances of a daemon

2013-12-22 Thread Daniel Pocock
This email is not so much about the change of init system but just about the multiple-instance problem, regardless of which init we use. It is not a huge hassle but it is something that could be handled more smoothly. Some packages provide a way to start multiple instances in one shot from their

Bug#727708: init multiple instances of a daemon

2013-12-22 Thread Russ Allbery
Daniel Pocock writes: > This email is not so much about the change of init system but just about > the multiple-instance problem, regardless of which init we use. It is > not a huge hassle but it is something that could be handled more > smoothly. > Some packages provide a way to start multiple

Bug#727708: init multiple instances of a daemon

2013-12-22 Thread Daniel Pocock
On 22/12/13 21:03, Russ Allbery wrote: > Daniel Pocock writes: > >> This email is not so much about the change of init system but just about >> the multiple-instance problem, regardless of which init we use. It is >> not a huge hassle but it is something that could be handled more >> smoothly.

Bug#727708: init multiple instances of a daemon

2013-12-22 Thread Russ Allbery
Daniel Pocock writes: > Just to clarify: does this mean systemd and upstart can refer to the > instances collectively or individually as required? E.g. you can tell > it restart all instances of httpd (on dpkg upgrade) or just restart one > specific instance (after a config change)? It looks li

Bug#727708: init multiple instances of a daemon

2013-12-22 Thread Tollef Fog Heen
]] Russ Allbery > Daniel Pocock writes: > > > Just to clarify: does this mean systemd and upstart can refer to the > > instances collectively or individually as required? E.g. you can tell > > it restart all instances of httpd (on dpkg upgrade) or just restart one > > specific instance (after

Bug#727708: init multiple instances of a daemon

2013-12-22 Thread Russ Allbery
Tollef Fog Heen writes: > ]] Russ Allbery >> It looks like both upstart and systemd don't provide direct mechanisms >> to manage all instances. The upstart cookbook recommends getting a >> list of all active services and extracting the list of instances of a >> particular service from that, and

Bug#727708: init multiple instances of a daemon

2013-12-22 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Dec 22, 2013 at 12:48:47PM -0800, Russ Allbery wrote: > upstart calls this "instances" and systemd calls this "unit > templates". We too call them instances: an instance is created from a template. > Daniel Pocock writes: > > > Just to clarify: does this mean systemd and upstart can refe

Bug#727708: init multiple instances of a daemon

2013-12-22 Thread Russ Allbery
Zbigniew Jędrzejewski-Szmek writes: > But this should be safe for instance units, so I'd like to see > 'systemctl stop/status/... server@*.service' implemented. That would be very useful for distribution packagers. If, for example, you support a multiple-instance Tomcat configuration (which is

Bug#727708: init multiple instances of a daemon

2013-12-22 Thread Adrien Clerc
Le 23/12/2013 00:37, Zbigniew Jędrzejewski-Szmek a écrit : It looks like both upstart and systemd don't provide direct mechanisms to manage all instances. That's true (I'm only speaking about systemd). There have been requests for such functionality before, but nothing was implemented. But I thi

Bug#727708: init multiple instances of a daemon

2013-12-22 Thread Tollef Fog Heen
]] Russ Allbery > Does that mean that you can do a systemctl restart getty and have it > restart all of the services spawned from the getty template? If you want that, add PartOf=foo.target and possibly ReloadPropagatedFrom=foo.target in foo@.service It'd be systemctl restart foo.target, not ju