Skip to content

pidfile_destinations

Module to store the configuration of the PID files

Classes:

  • UNIXOSConfig

    Dataclass to store the configuration of the OS

  • UNIXOSConfigEnum

    Enum to store the list of configuration for most major OS

UNIXOSConfig dataclass

UNIXOSConfig(distro_id: str, name: str, pidfile_path: List[str])

Dataclass to store the configuration of the OS

UNIXOSConfigEnum

Bases: Enum

Enum to store the list of configuration for most major OS

Supported OS list: https://distro.readthedocs.io/en/latest/#distro.id
Below pidfile path are used by default in case the user does not provide any path when creating the daemon

Methods:

get_enum classmethod

get_enum(distro_id: str) -> UNIXOSConfig

Function to get enum

Parameters:

  • distro_id

    (str) –

    Distribution ID

Returns:

  • UNIXOSConfig

    UNIXOSConfig object

get_mapping classmethod

get_mapping() -> Dict[str, Any]

Function to get mapping

Returns:

  • Dict[str, Any]

    Dictionary of UNIXOSConfig

get_pidfile_paths classmethod

get_pidfile_paths(distro_id: str) -> List[str]

Function to get PID file paths based on distro id

Parameters:

  • distro_id

    (str) –

    Distribution ID

Returns:

  • List[str]

    List of PID file paths