Subject: bind9-resolvconf.service



Граждане, а может кто-нибудь объяснить, почему

$ sudo systemctl cat bind9-resolvconf
# /lib/systemd/system/bind9-resolvconf.service
[Unit]
Description=local BIND via resolvconf
Documentation=man:named(8) man:resolvconf(8)
Requires=bind9.service
After=bind9.service
ConditionFileIsExecutable=/sbin/resolvconf

[Service]
ExecStart=/bin/sh -c 'echo nameserver 127.0.0.1 | /sbin/resolvconf -a lo.named'
ExecStop=/sbin/resolvconf -d lo.named

[Install]
WantedBy=bind9.service

не работает ни автоматически, ни вручную? Ни start, ни stop. Отдельно
команды из ExecStart и ExecStop работают.

Собственно, если кому интересно покопаться, признаком срабатывания start
будет появление lo.named в /run/resolvconf/interface, а stop - его
пропадание оттуда.

stretch.

Задалбывает, надо сказать, эта гребаная магия...

В статусе разницы не видно. Добавлять в зависимости resolvconf.service
пробовал (дело-то разумное, /run/resolvconf создается динамически). Не
помогает. Ну и вручную, при запущенном resolvconf, тоже не работает.

$ sudo systemctl start bind9-resolvconf
$ sudo systemctl status bind9-resolvconf
● bind9-resolvconf.service - local BIND via resolvconf
Loaded: loaded (/lib/systemd/system/bind9-resolvconf.service; enabled;
vendor preset: enabled)
Active: inactive (dead) since Tue 2017-08-01 21:02:02 MSK; 2s ago
Docs: man:named(8)
man:resolvconf(8)
Process: 1828 ExecStop=/sbin/resolvconf -d lo.named (code=exited,
status=0/SUCCESS)
Process: 1820 ExecStart=/bin/sh -c echo nameserver 127.0.0.1 |
/sbin/resolvconf -a lo.named (code=exited, status=0/S
Main PID: 1820 (code=exited, status=0/SUCCESS)

Aug 01 21:02:02 localhost systemd[1]: Started local BIND via resolvconf.

$ sudo systemctl stop bind9-resolvconf
$ sudo systemctl status bind9-resolvconf
● bind9-resolvconf.service - local BIND via resolvconf
Loaded: loaded (/lib/systemd/system/bind9-resolvconf.service; enabled;
vendor preset: enabled)
Active: inactive (dead) since Tue 2017-08-01 21:02:02 MSK; 29s ago
Docs: man:named(8)
man:resolvconf(8)
Process: 1828 ExecStop=/sbin/resolvconf -d lo.named (code=exited,
status=0/SUCCESS)
Process: 1820 ExecStart=/bin/sh -c echo nameserver 127.0.0.1 |
/sbin/resolvconf -a lo.named (code=exited, status=0/S
Main PID: 1820 (code=exited, status=0/SUCCESS)

Aug 01 21:02:02 localhost systemd[1]: Started local BIND via resolvconf.



Programming list archiving by: Enterprise Git Hosting