summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinitramfs <initramfs@initramfs.io>2022-11-05 08:51:18 +0800
committerinitramfs <initramfs@initramfs.io>2022-11-05 09:26:43 +0800
commitae30110b9fe47000693ecaeb63d9ecef1d4ef720 (patch)
tree804405f7f5ec64cb13e51f62dc52fe3cc6d018b9 /src
parent333e87dc69dc0812bf5da7b1e60a287aebc159bd (diff)
downloadvyos-1x-ae30110b9fe47000693ecaeb63d9ecef1d4ef720.tar.gz
vyos-1x-ae30110b9fe47000693ecaeb63d9ecef1d4ef720.zip
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. (cherry picked from commit ff09d4f47e5f54fad8258cd27fb0adfaa4c552b3)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/services/vyos-hostsd3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/services/vyos-hostsd b/src/services/vyos-hostsd
index f4b1d0fc2..3cbd31331 100755
--- a/src/services/vyos-hostsd
+++ b/src/services/vyos-hostsd
@@ -378,8 +378,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