SystemD dependency problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux