On Wed, Jul 2, 2014 at 4:05 PM, Ivan Shapovalov <[email protected]> wrote: > Consider the following situation. > We have foo.target and [email protected]. All instances of [email protected] are > WantedBy=foo.target (and implicitly After=foo.target). So, when foo.target > is activated, all instances of [email protected] 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 <[email protected]> _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
