Bug 10610
| Summary: | Стартует _после_ некоторых сервисов, использующих DNS | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Fr. Br. George <george> |
| Component: | pdnsd | Assignee: | Nobody's working on this, feel free to take it <nobody> |
| Status: | NEW --- | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
Андрей, вы, кажется сейчас занимаетесь pdnsd? Получается, что да... Знать бы, в какой именно левел его тащить... Reassigned to new maintainer. pdnsd 1.2.9a-alt2 до сих пор поставляется только с init-скриптом (chkconfig: 345 90 10 — те же S90), systemd-юнита нет. Под systemd sysv-generator не даёт никакого упорядочивания относительно nss-lookup.target, и сервисы, резолвящие имена (freshclam и т.п.), стартуют с pdnsd параллельно — проблема из репорта воспроизводится по построению. Правильный фикс — нативный юнит с Before=nss-lookup.target / Wants=nss-lookup.target, как у unbound и dnsmasq (systemd-analyze verify проходит, ругается только на отсутствие man в контейнере): alt/pdnsd.service: [Unit] Description=pdnsd caching DNS proxy Documentation=man:pdnsd(8) man:pdnsd.conf(5) # Other services resolve names through us: be up before nss-lookup.target, # like every other local resolver (unbound, dnsmasq, systemd-resolved). After=network.target Before=nss-lookup.target Wants=nss-lookup.target [Service] Type=forking PIDFile=/run/pdnsd.pid ExecStart=/usr/sbin/pdnsd --daemon --config-file /etc/pdnsd.conf -p /run/pdnsd.pid Restart=on-failure [Install] WantedBy=multi-user.target В спек: `install -pD -m644 alt/%name.service %buildroot%_unitdir/%name.service` в %install, `%_unitdir/%name.service` в %files; %post_service/%preun_service уже есть. |

Description
Fr. Br. George 2007-01-08 12:25:57 MSK