mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
parent
9d94d3a329
commit
ea97c014b7
1 changed files with 5 additions and 4 deletions
|
@ -52,7 +52,8 @@ def start():
|
||||||
if os.path.exists(filename):
|
if os.path.exists(filename):
|
||||||
# Configuration taken from file
|
# Configuration taken from file
|
||||||
configure_from_file(filename, debug)
|
configure_from_file(filename, debug)
|
||||||
# Reload config on SIGHUP
|
# Reload config on SIGHUP (UNIX only)
|
||||||
|
if hasattr(signal, 'SIGHUP'):
|
||||||
def handler(signum, frame):
|
def handler(signum, frame):
|
||||||
configure_from_file(filename, debug)
|
configure_from_file(filename, debug)
|
||||||
signal.signal(signal.SIGHUP, handler)
|
signal.signal(signal.SIGHUP, handler)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue