distrax.utils.system.is_systemd_service_enabled#

distrax.utils.system.is_systemd_service_enabled(service)[source]#

Check if systemd service is enabled or not.

Parameters:

service (str) – The systemd process to check

Return type:

bool

Returns:

True if enabled else False

Examples

>>> distrax.utils.system.is_systemd_service_enabled("enabled_service")
True
>>> distrax.utils.system.is_systemd_service_enabled("disabled_service")
False