Actions
Bug #448
closeddnscache is not starting
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/24/2010
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:
Description
snapshot 20100324-0246
After configuring TinyDNS from GUI, dnscache is not starting.
patch¶
# diff tinydns.inc.001 tinydns.inc
209,214c209,211
< if(!is_dir("/etc/dnscache{$dnsidx}")) {
< exec("mkdir /etc/dnscache{$dnsidx}");
< exec("/bin/ln -s /etc/dnscache{$dnsidx} /service/");
<
< }
< exec("/usr/local/bin/dnscache-conf Gdnscache Gdnslog /etc/dnscache{$dnsidx} {$dnscacheip}");
---
> exec("rm -rf /etc/dnscache{$dnsidx}");
> exec("/usr/local/bin/dnscache-conf Gdnscache Gdnslog /etc/dnscache{$dnsidx} {$dnscacheip}");
> exec("/bin/ln -s /etc/dnscache{$dnsidx} /service/");
Updated by Ermal Luçi over 15 years ago
- Status changed from New to Feedback
Slightly different patch committed.
Thank you.
Updated by Chris Buechler over 15 years ago
- Status changed from Feedback to Resolved
Updated by Henrik Kaare Poulsen over 15 years ago
I am sorry, but the issue does not seem to be fixed, even with the latest TinyDNS updates.
dnscache-conf fails if the etc/dnscache{$dnsidx} directory already exists.
Patch against current git¶
git diff 17ce09911ff4f18d5a744de01ed0da38760d47cf
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc
index 5e73015..d44a68f 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -237,7 +237,6 @@ function tinydns_custom_php_changeip_command() {
$ipmask = $config['interfaces'][$dnsif]['subnet'];
$arr = tinydns_get_ip_subnet_arpa($dnscacheip, $ipmask);
$dnsuserip = $arr[0];
- exec("/bin/mkdir -p {$g['varetc_path']}/etc/dnscache{$dnsidx}");
exec("/usr/local/bin/dnscache-conf Gdnscache Gdnslog {$g['varetc_path']}/etc/dnscache{$dnsidx} {$dnscacheip}");
exec("/bin/ln -s {$g['varetc_path']}/etc/dnscache{$dnsidx} {$g['varrun_path']}/service/");
if (!is_dir("{$g['varetc_path']}/etc/dnscache{$dnsidx}/env/IP"))
Updated by Ermal Luçi over 15 years ago
- Status changed from New to Feedback
This is already committed.
Updated by Henrik Kaare Poulsen over 15 years ago
I concur. The issue is now fixed.
Thank you!
Updated by Chris Buechler over 15 years ago
- Status changed from Feedback to Resolved
Actions