Univention Bugzilla – Attachment 3477 Details for
Bug 23428
Kleine Probleme in bind.py
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix für die Probleme
fix_small_problems.patch (text/plain), 1.61 KB, created by
Janis Meybohm
on 2011-08-25 16:46 CEST
(
hide
)
Description:
Fix für die Probleme
Filename:
MIME Type:
Creator:
Janis Meybohm
Created:
2011-08-25 16:46 CEST
Size:
1.61 KB
patch
obsolete
>Index: bind.py >=================================================================== >--- bind.py (Revision 26397) >+++ bind.py (Arbeitskopie) >@@ -124,18 +124,21 @@ > if f.endswith('.proxy'): > fp.write('include "%s";\n' % os.path.join(named_conf_dir, f)) > fp.close() >- univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'DNS: Reloading BIND') > restart=False >- for file in os.listdir('/var/cache/univention-bind-proxy'): >- if not os.path.exists(os.path.join('/var/cache/bind', file)): >+ for zfile in os.listdir('/var/cache/univention-bind-proxy'): >+ if not os.path.exists(os.path.join('/var/cache/bind', zfile)): > restart=True > else: >- zone = file.replace(".zone", "") >+ zone = zfile.replace(".zone", "") > if os.path.exists('/usr/sbin/rndc'): >+ univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'DNS: Reloading BIND') > os.spawnv(os.P_WAIT, '/usr/sbin/rndc', ['rndc', '-p 55555', 'reload', zone]) > os.spawnv(os.P_WAIT, '/usr/sbin/rndc', ['rndc', '-p 953', 'reload', zone]) >- os.remove(os.path.join('/var/cache/univention-bind-proxy', file)) >+ else: >+ univention.debug.debug(univention.debug.LISTENER, univention.debug.ERROR, 'DNS: /usr/sbin/rndc missin, install bind9utils!') >+ os.remove(os.path.join('/var/cache/univention-bind-proxy', zfile)) > if restart: >+ univention.debug.debug(univention.debug.LISTENER, univention.debug.INFO, 'DNS: Restarting BIND') > os.spawnv(os.P_WAIT, '/etc/init.d/univention-bind-proxy', ['univention-bind-proxy', 'restart']) > os.spawnv(os.P_WAIT, '/etc/init.d/univention-bind', ['univention-bind', 'restart']) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 23428
: 3477