From ff09d4f47e5f54fad8258cd27fb0adfaa4c552b3 Mon Sep 17 00:00:00 2001 From: initramfs Date: Sat, 5 Nov 2022 08:51:18 +0800 Subject: dns: T4799: fix bug with not reloading powerdns config PowerDNS version 4.7 and above has changed the main process name from 'pdns-r/worker' to 'pdns_recursor'. This commit updates the process name check to use the new name. --- src/services/vyos-hostsd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/services/vyos-hostsd') diff --git a/src/services/vyos-hostsd b/src/services/vyos-hostsd index 9ae7b1ea9..a380f2e66 100755 --- a/src/services/vyos-hostsd +++ b/src/services/vyos-hostsd @@ -406,8 +406,7 @@ def validate_schema(data): def pdns_rec_control(command): - # pdns-r process name is NOT equal to the name shown in ps - if not process_named_running('pdns-r/worker'): + if not process_named_running('pdns_recursor'): logger.info(f'pdns_recursor not running, not sending "{command}"') return -- cgit v1.2.3