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
Dataclass to store the configuration of the OS
Returned by:
-
Documentation
Daemonizer
Core
Pid
pidfile_destinationsUNIXOSConfigEnumget_enum
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–Function to get enum
-
get_mapping–Function to get mapping
-
get_pidfile_paths–Function to get PID file paths based on distro id
get_enum
classmethod
get_enum(distro_id: str) -> UNIXOSConfig
Function to get enum
Parameters:
-
(distro_idstr) –Distribution ID
Returns:
-
UNIXOSConfig–UNIXOSConfig object
get_mapping
classmethod
Function to get mapping
Returns:
-
Dict[str, Any]–Dictionary of UNIXOSConfig