Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 184871

Summary: net-dns/pdnsd - add reload function to pdnsd-online initscript
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: New packagesAssignee: Gentoo Dialup Developers <net-dialup>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: pdnsd.online.diff
pdnsd-1.2.5.ebuild.diff

Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-07-10 16:43:46 UTC
Hi,

I'd like to have pdnsd-online iniscript enhanced so that I can reload pdnsd's configfile when I changed something inside that file. Currently I have to invoke "pdnsd-ctlconfig /etc/pdnsd/pdnsd.conf" which could also be done by the initscript via "/etc/init.d/pdnsd-online reload".

I'll attach two diff to show you what I mean.

Cheers
Poly-C

Reproducible: Always

Steps to Reproduce:
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-07-10 16:45:23 UTC
Created attachment 124438 [details, diff]
pdnsd.online.diff

diff for the pdnsd-online initscript.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-07-10 16:47:43 UTC
Created attachment 124440 [details, diff]
pdnsd-1.2.5.ebuild.diff

This diff only adds some more lines which get echo-ed into /etc/conf.d/pdnsd-online file. I added PDNSD_CONFIG variable which can be used when pdnsd.conf is not in /etc/pdnsd/
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2007-07-13 07:48:20 UTC
Fixed in 1.2.5-r1 but without making config file configurable through conf.d file (I don't see why should do this). Besides, you forgot to make necessary changes in start() for making pdnsd start with the user selected PDNSD_CONFIG file instead the default one.