On Wed, Jul 2, 2014 at 4:05 PM, Ivan Shapovalov <intelfx...@gmail.com> wrote: > Consider the following situation. > We have foo.target and foo@.service. All instances of foo@.service are > WantedBy=foo.target (and implicitly After=foo.target). So, when foo.target > is activated, all instances of foo@.service are started in parallel. > > The question is -- how to run them sequentially?
You can't do this with systemd features (and I'm curious why this would be needed in the first place). But the program itself, or a wrapper script, could use flock() or the `flock` tool on a shared lockfile to serialize startup. -- Mantas Mikulėnas <graw...@gmail.com> _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel