E$&ddZddlZddlmZddlmZejeZdZ dZ dZ dZ d Z dS) u  This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program.  If not, see . Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see N)svcctl) CheckRunErrorzaibolit-resident.socketzaibolit-residentcK|rtdtjt}tjt } t ||d{V|d{VnD#t$r7}dt|vr t dYd}~dSd}~wwxYwt ddSdS)Nz"ai-bolit service will be restartedz is maskedz?Aibolit service is masked, skipping restart during installationzai-bolit service restarted) loggerinforadaptorAIBOLIT_SOCKET_NAMEAIBOLIT_SVCNAME_ensure_socket_activerestartrstrwarningdebug)_ is_updatedaibolit_socketaibolit_servicees S/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/subsys/aibolit.py restart_on_sigs_or_config_updater!s3 8999(;<< .99 'HH H H H H H H H!))++ + + + + + + + +   c!ff$$$    12222233s0B C +B?>B??CcjK |d{Vsjtd|d{V|d{V|d{VdSdS#t $rtdYdSwxYw)aRestart aibolit-resident.socket if it was killed by systemd rate limiting. When the service hits StartLimitBurst, systemd stops both the service *and* the socket (via PartOf) and marks them failed. A plain ``restart`` of the service won't help because the socket stays dead. We reset-failed + restart the socket so that the next scan can trigger socket activation again.Nz1aibolit-resident.socket is not active, recoveringz)failed to recover aibolit-resident.socket) is_activerr reset_failedr Exception exception)rrs rr r 4sF#--//////// + NNN O O O!..00 0 0 0 0 0 0 0 --// / / / / / / / ((** * * * * * * * * *  + + FFFDEEEEEEFsBB $B21B2c6Ktddd{VdS)NT)rr$restart_on_detect_admin_tools_updaterEsF *    r)__doc__loggingdefence360agent.subsysrdefence360agent.utilsr getLogger__name__rr r rr rrrrr&s*))))))//////  8 $ $/$333&FFF"r