On Thu, 2014-02-13 at 09:12 +0100, Gian Uberto Lauri wrote: > One more question about systemd: > > let's assume that I have to execute a script after S10checkfs/ > S11mountall and before S13networking. > > Do I find a clear, reliable set of instructions to achieve this goal? > > At this time my fear is that systemd turns out as a very nice tool for > personal pc but a PITA for servers/vm (as happened for upstep).
"Handling dependencies With systemd, dependencies can be resolved by designing the unit files correctly. The most typical case is that the unit A requires the unit B to be running before A is started. In that case add Requires=B and After=B to the [Unit] section of A. If the dependency is optional, add Wants=B and After=B instead. Note that Wants= and Requires= do not imply After=, meaning that if After= is not specified, the two units will be started in parallel. Dependencies are typically placed on services and not on targets. For example, network.target is pulled in by whatever service configures your network interfaces, therefore ordering your custom unit after it is sufficient since network.target is started anyway." - https://wiki.archlinux.org/index.php/systemd -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1392282023.678.47.camel@archlinux