summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-07-13 07:46:00 +0000
committerAlin Năstac <mrness@gentoo.org>2007-07-13 07:46:00 +0000
commit67dc6215da3e5eb12a18fcbb996f9a5fee2ad64d (patch)
treeda79025310c8504994c67bceb13618f00ef2a8b1 /net-dns/pdnsd/files
parentRemoving vzctl-3.0.17. Adding the keepdir for /etc/vz/names as Kir pointed in... (diff)
downloadhistorical-67dc6215da3e5eb12a18fcbb996f9a5fee2ad64d.tar.gz
historical-67dc6215da3e5eb12a18fcbb996f9a5fee2ad64d.tar.bz2
historical-67dc6215da3e5eb12a18fcbb996f9a5fee2ad64d.zip
Add reload option to pdnsd init script (#184871).
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'net-dns/pdnsd/files')
-rw-r--r--net-dns/pdnsd/files/digest-pdnsd-1.2.4-r13
-rw-r--r--net-dns/pdnsd/files/digest-pdnsd-1.2.4-r33
-rw-r--r--net-dns/pdnsd/files/digest-pdnsd-1.2.5-r1 (renamed from net-dns/pdnsd/files/digest-pdnsd-1.2.5)0
-rw-r--r--net-dns/pdnsd/files/pdnsd-1.2.4-dbg_file.patch51
-rw-r--r--net-dns/pdnsd/files/pdnsd.rc610
5 files changed, 9 insertions, 58 deletions
diff --git a/net-dns/pdnsd/files/digest-pdnsd-1.2.4-r1 b/net-dns/pdnsd/files/digest-pdnsd-1.2.4-r1
deleted file mode 100644
index a46253777836..000000000000
--- a/net-dns/pdnsd/files/digest-pdnsd-1.2.4-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 aafb9d65d713b4bc2c6c4ba822e0bd3c pdnsd-1.2.4-par.tar.gz 537362
-RMD160 19cbb5d03eacdd8153ac3b9675cdbe07b1edfbd4 pdnsd-1.2.4-par.tar.gz 537362
-SHA256 b9172094feee0ebe6b2aec3c1358419cc928469e16c96718d7d0fc639fc17e55 pdnsd-1.2.4-par.tar.gz 537362
diff --git a/net-dns/pdnsd/files/digest-pdnsd-1.2.4-r3 b/net-dns/pdnsd/files/digest-pdnsd-1.2.4-r3
deleted file mode 100644
index a46253777836..000000000000
--- a/net-dns/pdnsd/files/digest-pdnsd-1.2.4-r3
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 aafb9d65d713b4bc2c6c4ba822e0bd3c pdnsd-1.2.4-par.tar.gz 537362
-RMD160 19cbb5d03eacdd8153ac3b9675cdbe07b1edfbd4 pdnsd-1.2.4-par.tar.gz 537362
-SHA256 b9172094feee0ebe6b2aec3c1358419cc928469e16c96718d7d0fc639fc17e55 pdnsd-1.2.4-par.tar.gz 537362
diff --git a/net-dns/pdnsd/files/digest-pdnsd-1.2.5 b/net-dns/pdnsd/files/digest-pdnsd-1.2.5-r1
index fd17b3df87a7..fd17b3df87a7 100644
--- a/net-dns/pdnsd/files/digest-pdnsd-1.2.5
+++ b/net-dns/pdnsd/files/digest-pdnsd-1.2.5-r1
diff --git a/net-dns/pdnsd/files/pdnsd-1.2.4-dbg_file.patch b/net-dns/pdnsd/files/pdnsd-1.2.4-dbg_file.patch
deleted file mode 100644
index b7a39689c75a..000000000000
--- a/net-dns/pdnsd/files/pdnsd-1.2.4-dbg_file.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-diff -Nru pdnsd-1.2.4.orig/src/main.c pdnsd-1.2.4/src/main.c
---- pdnsd-1.2.4.orig/src/main.c 2005-11-12 22:03:42.000000000 +0200
-+++ pdnsd-1.2.4/src/main.c 2006-04-27 09:38:38.000000000 +0300
-@@ -63,7 +63,7 @@
- pthread_t main_thrid,servstat_thrid,statsock_thrid,tcps_thrid,udps_thrid;
- uid_t init_uid;
- #if DEBUG>0
--FILE *dbg_file;
-+FILE *dbg_file=NULL;
- #endif
- volatile int tcp_socket=-1;
- volatile int udp_socket=-1;
-@@ -451,6 +451,19 @@
- }
- }
-
-+#if DEBUG>0
-+ if (global.daemon) {
-+ if (debug_p) {
-+ char dbgdir[strlen(global.cache_dir)+sizeof("/pdnsd.debug")];
-+ stpcpy(stpcpy(dbgdir,global.cache_dir),"/pdnsd.debug");
-+ if (!(dbg_file=fopen(dbgdir,"w")))
-+ debug_p=0;
-+ }
-+ } else {
-+ dbg_file=stdout;
-+ }
-+#endif
-+
- if (global.daemon && global.pidfile) {
- if (unlink(global.pidfile)!=0 && errno!=ENOENT) {
- log_error("Error: could not unlink pid file %s: %s",global.pidfile, strerror(errno));
-@@ -550,18 +563,6 @@
- dup2(fd,1);
- dup2(fd,2);
- close(fd);
--#if DEBUG>0
-- if (debug_p) {
-- char dbgdir[strlen(global.cache_dir)+sizeof("/pdnsd.debug")];
-- stpcpy(stpcpy(dbgdir,global.cache_dir),"/pdnsd.debug");
-- if (!(dbg_file=fopen(dbgdir,"w")))
-- debug_p=0;
-- }
--#endif
-- } else {
--#if DEBUG>0
-- dbg_file=stdout;
--#endif
- }
- log_info(0,"pdnsd-%s starting.\n",VERSION);
- DEBUG_MSG("Debug messages activated\n");
diff --git a/net-dns/pdnsd/files/pdnsd.rc6 b/net-dns/pdnsd/files/pdnsd.rc6
index bef9ba0f7a72..6ae51270141e 100644
--- a/net-dns/pdnsd/files/pdnsd.rc6
+++ b/net-dns/pdnsd/files/pdnsd.rc6
@@ -1,7 +1,9 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/files/pdnsd.rc6,v 1.12 2004/07/14 23:26:19 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/files/pdnsd.rc6,v 1.13 2007/07/13 07:46:00 mrness Exp $
+
+opts="reload"
depend() {
need net
@@ -29,3 +31,9 @@ stop() {
start-stop-daemon --stop --quiet --pidfile /var/run/pdnsd.pid
eend $?
}
+
+reload() {
+ ebegin "Reloading pdnsd.conf"
+ /usr/sbin/pdnsd-ctl config
+ eend $?
+}