[systemd-devel] SystemD dependency problem

Ronald Wimmer ronaldw at ronzo.at
Tue Dec 22 11:17:46 UTC 2020


On a server running OL 7.9 with SystemD 219 we have a custom SystemD 
service we have something like


[Unit]
Requires=network.target docker.service

[Service]
Restart=always
RestartSec=10
TimeoutSec=300
WorkingDirectory=/data/someapplication
ExecStartPre=<pull a docker image>
ExecStart=<docker-compose up>
ExecStop=<docker-compose stop>
ExecStopPost=<docker-compose down>

[Install]
WantedBy=network-online.target

which does not work. This service leads do several other services 
(rsyslogd, docker, network-online.target, ...) to be stuck in "start 
waiting".

My question is why? Is there any obvious misconfiguration in the service 
above I am too blind to see?

I would highly appreciate any hints!

Cheers,
Ronald



More information about the systemd-devel mailing list