Re: [systemd-devel] how-to run instantiated units from templates one after the other

2015-09-21 Thread David Herrmann
Hi On Fri, Sep 18, 2015 at 8:34 PM, Dmitry Karpov wrote: > I have a template for creating the backup: > > backup@.service > > [Unit] > > Description=Instance %i > > [Service] > > ExecStart=/bin/sh -c "echo do backup job for %i" > > [Install] > > WantedBy=maintenance.target

Re: [systemd-devel] how-to run instantiated units from templates one after the other

2015-09-21 Thread Ian Geiser
I have a similar problem, but from what I can tell with the current templates this is not possible. I ended up using an internal script that would loop over the process. On 09/18/2015 02:34 PM, Dmitry Karpov wrote: I have a template for creating the backup: backup@.service [Unit]

[systemd-devel] how-to run instantiated units from templates one after the other

2015-09-18 Thread Dmitry Karpov
I have a template for creating the backup: backup@.service [Unit] Description=Instance %i [Service] ExecStart=/bin/sh -c "echo do backup job for %i" [Install] WantedBy=maintenance.target and some target: maintenance.target [Unit] Description=target for maintenance