stop/restart units along with others
Michael Biebl
biebl at debian.org
Fri Jun 5 18:21:49 BST 2015
Am 04.06.2015 um 23:13 schrieb Christoph Anton Mitterer:
> So what I'm basically looking for, would be a way to configure, that
> e.g. everytime netfilter-persistent is stopped, fail2ban is either and
> when it's restarted fail2ban is either (obviously in the correct order,
> like stop fail2ban, stop netfilter-persistent, start
> netfilter-persistent, start fail2ban).
> It should however NOT happen, when netfilter-persistent is started -
> just at stop/restart.
>
>
> Is that possible?
Have you studied the systemd man pages? Specifically man systemd.unit →
"[UNIT] SECTION OPTIONS"
The ordering is done via Before=/After=.
For specifying dependencies you have a variety of options:
Wants/Requires/BindsTo/PartOf...
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150605/1326fa0c/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list