[systemd-devel] How do I easily resolve conflicting jobs in custom units?

Lennart Poettering lennart at poettering.net
Thu Mar 30 13:32:19 UTC 2017


On Wed, 22.03.17 16:47, John Florian (john at doubledog.org) wrote:

> Mar 22 16:11:42 localhost systemd[1]: sshd.service: Looking at job
> sshd.service/start conflicted_by=no
> Mar 22 16:11:42 localhost systemd[1]: sshd.service: Looking at job
> sshd.service/stop conflicted_by=yes
> Mar 22 16:11:42 localhost systemd[1]: sshd.service: Fixing conflicting
> jobs sshd.service/start,sshd.service/stop by deleting job
> sshd.service/start

So this suggests that you have both a job that pulls in sshd.service
and one that conflicts with it in your initial transaction. Try
figuring out what that is...

(hint: use "systemctl show sshd.service" for that, and look for
Conflicts= and ConlictedBy=)

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list