[systemd-devel] Transaction contains conflicting jobs 'restart' and 'stop'

Orion Poplawski orion at cora.nwra.com
Thu Mar 10 17:51:59 UTC 2016


Orion Poplawski <orion <at> cora.nwra.com> writes:
> 
> Can someone please explain this to me?
> 
> # systemctl restart firewalld
> Failed to restart firewalld.service: Transaction contains conflicting jobs
> 'restart' and 'stop' for fail2ban.service. Probably contradicting
> requirement dependencies configured.
>
> # cat /usr/lib/systemd/system/fail2ban.service
> [Unit]
> PartOf=iptables.service firewalld.service
> 
> # cat /usr/lib/systemd/system/firewalld.service
> [Unit]
> Conflicts=iptables.service ip6tables.service ebtables.service

It appears that this is a trigger for this issue.  Removing the
conflicts=iptables.service removes it.  This seems like a bug to me though -
why is iptables being brought in if the PartOf= is a one-way dep?



More information about the systemd-devel mailing list