def run(self) -> None:
        """Run the daemon process.

        Start the logger thread and keep running execution cycles until a SIGTERM is eventually received. Also reload
        configuration upon receiving SIGHUP.
        """
        try:  # pragma: no cover
            from systemd import daemon  # pyright: ignore
            daemon.notify("READY=1")  # pyright: ignore
        except ImportError:  # pragma: no cover
            logger.info("Systemd integration is not supported")
        self.logger.start()
        while not self.received_sigterm:
            if self._received_sighup:
                self._received_sighup = False
                self.reload_config(True, self.config.reload_local_configuration())

            self._run_cycle()
Run the daemon process.

        Start the logger thread and keep running execution cycles until a SIGTERM is eventually received. Also reload
        configuration upon receiving SIGHUP.
        
patroni/daemon.py