I have a template for creating the backup:

[email protected]

[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

StopWhenUnneeded=yes         

As can be seen, instances from backup@ start with maintenance.target. But they 
run in parallel.

There is some way to run them one after the other?

I thought that specifying Conflicts=backup@*.service in the template should 
lead to this, but it is not.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to