pull/3086/head 0.49.11
dgtlmoon 2025-04-03 18:54:20 +02:00
rodzic 8c6f6f1578
commit 108cdf84a5
1 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
# Read more https://github.com/dgtlmoon/changedetection.io/wiki
__version__ = '0.49.10'
__version__ = '0.49.11'
from changedetectionio.strtobool import strtobool
from json.decoder import JSONDecodeError
@ -11,6 +11,7 @@ os.environ['EVENTLET_NO_GREENDNS'] = 'yes'
import eventlet
import eventlet.wsgi
import getopt
import platform
import signal
import socket
import sys
@ -152,7 +153,11 @@ def main():
return memory_cleanup(app)
# Register the SIGUSR1 signal handler
# Only register the signal handler if running on Linux
if platform.system() == "Linux":
signal.signal(signal.SIGUSR1, sigusr_clean_handler)
else:
logger.info("SIGUSR1 handler only registered on Linux, skipped.")
# Go into cleanup mode
if do_cleanup: