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?

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to