관리-도구
편집 파일: runner.cpython-311.pyc
� R�Dg�) � �Z � d Z ddlmZmZ ddlZddlZddlZddlZddlZddl Z ddl mZ ddlm Z mZmZmZ e n # e$ r eZY nw xY weZ ej de� � G d� d e� � Z G d � dee� � Z G d� d ee� � Z G d� dee� � Z G d� d� � Zdd�Z d� Z!d� Z"dS )z Daemon runner library. � )�absolute_import�unicode_literalsN� ��pidfile)�0_chain_exception_from_existing_exception_context� DaemonContext� basestring�unicodeu@ The ‘runner’ module is not a supported API for this library.c �( � � e Zd ZdZ� fd�Zd� Z� xZS )�DaemonRunnerErrorz3 Abstract base class for errors from DaemonRunner. c �b �� | � � � t � � j |i |�� d S �N)�_chain_from_context�super�__init__)�self�args�kwargs� __class__s ��m/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/daemon/runner.pyr zDaemonRunnerError.__init__2 s7 �� �� � �"�"�"������$�)�&�)�)�)�)�)� c �( � t | d�� � d S )NT��as_cause�r �r s r r z%DaemonRunnerError._chain_from_context7 s � �8���M�M�M�M�M�Mr )�__name__� __module__�__qualname__�__doc__r r � __classcell__)r s @r r r / sT �� � � � � �=�=�*� *� *� *� *� N� N� N� N� N� N� Nr r c � � e Zd ZdZd� ZdS )�DaemonRunnerInvalidActionErrorz; Raised when specified action for DaemonRunner is invalid. c �( � t | d�� � d S )NFr r r s r r z2DaemonRunnerInvalidActionError._chain_from_context>