Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #10968] Race condition when using systemd unit file #3838
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10968
Created by leeclemens on 2016-01-13 23:54:50 +00:00
I noticed on a server without mariadb.service present (or presumably another service/unit further requiring network), that icinga2.service would attempt to start before network (race) and would usually fail with critical/ApiListener: Cannot bind TCP socket for host.
Adding 'network.target' to the [Unit] After argument in the unit file resolved the race condition.
CentOS Linux release 7.2.1511 (Core)
2016-01-14 09:11:38 +00:00 by leeclemens 984eaf5
2016-02-23 08:19:59 +00:00 by leeclemens 9ceb1d6