Re: [systemd-devel] We are working on Secure Container Applications.

2012-01-10 Thread Jóhann B. Guðmundsson
On 01/10/2012 11:51 PM, Lennart Poettering wrote: Yes. Most likely you don't even have to create the file /etc/systemd/system/httpd@sanbox2.service at all, instead just symlink it from /lib/systemd/system/httpd@.service, i.e. the common template. Dan to give you an example which I used test to

Re: [systemd-devel] We are working on Secure Container Applications.

2012-01-10 Thread Lennart Poettering
On Wed, 11.01.12 00:51, Lennart Poettering (lenn...@poettering.net) wrote: > > systemctl stop httpd@.service > > > > Would stop httpd.service, httpd@sandbox1.service and > > httpd@sandbox2.service > > Almost. It will stop the instanced services, but not the one that isn't > instantiated. You'd h

Re: [systemd-devel] We are working on Secure Container Applications.

2012-01-10 Thread Lennart Poettering
On Tue, 10.01.12 10:19, Daniel J Walsh (dwa...@redhat.com) wrote: > > Hmm, yupp I think this would make sense, after all we already are > > capable of propagating restart requests between services, along > > requirement dependency paths. So we probably should provide the > > same for reloading,

Re: [systemd-devel] We are working on Secure Container Applications.

2012-01-10 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/09/2012 09:38 PM, Lennart Poettering wrote: > On Mon, 09.01.12 16:42, Daniel J Walsh (dwa...@redhat.com) wrote: > >> The idea is to run multiple instances of the same application >> within a container. For example multiple Apache servers. >> >

Re: [systemd-devel] We are working on Secure Container Applications.

2012-01-09 Thread Jóhann B. Guðmundsson
On 01/10/2012 02:38 AM, Lennart Poettering wrote: To make this easy I'll extend the D-Bus logic a bit so that "systemctl stopquux@.service" (i.e. without an instance part in the name) will stop all instances of that template. I added this to the TODO list now, both should be available in not s

Re: [systemd-devel] We are working on Secure Container Applications.

2012-01-09 Thread Lennart Poettering
On Mon, 09.01.12 23:26, "Jóhann B. Guðmundsson" (johan...@gmail.com) wrote: > >ReloadRequest: httpd.service > > > >Then anyone asking to reload the httpd.service would also cause the > >httpd_sandbox.service to get the reload. > > Hum should that not happen automatically when you BindTo a unit as

Re: [systemd-devel] We are working on Secure Container Applications.

2012-01-09 Thread Lennart Poettering
On Mon, 09.01.12 16:42, Daniel J Walsh (dwa...@redhat.com) wrote: > The idea is to run multiple instances of the same application within a > container. For example multiple Apache servers. > > I am working on a tool to create these containers, which will create a > service unit file. > > # virt

Re: [systemd-devel] We are working on Secure Container Applications.

2012-01-09 Thread Jóhann B. Guðmundsson
On 01/09/2012 09:42 PM, Daniel J Walsh wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The idea is to run multiple instances of the same application within a container. For example multiple Apache servers. I am working on a tool to create these containers, which will create a service unit

[systemd-devel] We are working on Secure Container Applications.

2012-01-09 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The idea is to run multiple instances of the same application within a container. For example multiple Apache servers. I am working on a tool to create these containers, which will create a service unit file. # virt-sandbox-service create -e /usr/sb