summaryrefslogtreecommitdiff
path: root/src/conf_mode/host_name.py
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2020-06-11 09:07:06 +0200
committerJernej Jakob <jernej.jakob@gmail.com>2020-06-11 22:10:47 +0200
commit7000385c68b5816867650781a5d8a87ce90f52aa (patch)
tree0759976d949e7b8fcb141982ecb067f2ad179274 /src/conf_mode/host_name.py
parent469884f4f4f7977085db54d1ce6ad6842252660e (diff)
downloadvyos-1x-7000385c68b5816867650781a5d8a87ce90f52aa.tar.gz
vyos-1x-7000385c68b5816867650781a5d8a87ce90f52aa.zip
host_name: T2486: remove pdns-recursor restart
It shouldn't be required, if necessary it should be added to vyos-hostsd apply command.
Diffstat (limited to 'src/conf_mode/host_name.py')
-rwxr-xr-xsrc/conf_mode/host_name.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py
index 0ca7011f4..3e301477d 100755
--- a/src/conf_mode/host_name.py
+++ b/src/conf_mode/host_name.py
@@ -167,18 +167,6 @@ def apply(config):
if process_named_running('snmpd'):
call('systemctl restart snmpd.service')
- # restart pdns if it is used - we check for the control dir to not raise
- # an exception on system startup
- #
- # File "/usr/lib/python3/dist-packages/vyos/configsession.py", line 128, in __run_command
- # raise ConfigSessionError(output)
- # vyos.configsession.ConfigSessionError: [ system domain-name vyos.io ]
- # Fatal: Unable to generate local temporary file in directory '/run/powerdns': No such file or directory
- if os.path.isdir('/run/powerdns'):
- ret = run('/usr/bin/rec_control --socket-dir=/run/powerdns ping')
- if ret == 0:
- call('systemctl restart pdns-recursor.service')
-
return None