distrax.utils.system.is_systemd_service_active#
- distrax.utils.system.is_systemd_service_active(service)[source]#
Check if systemd service is active or not.
- Parameters:
service (
str
) – The systemd process to check- Return type:
- Returns:
True if enabled else False
Examples
>>> distrax.utils.system.is_systemd_service_active("active_service") True >>> distrax.utils.system.is_systemd_service_active("stopped_service") False