distrax.utils.system module#

Functions relevant to systemd

disable_service(service)

Disables systemd service.

enable_service(service)

Enables systemd service.

is_systemd()

Check if the system is using systemd.

is_systemd_service_active(service)

Check if systemd service is active or not.

is_systemd_service_enabled(service)

Check if systemd service is enabled or not.

start_service(service)

Start systemd service.

stop_service(service)

Stops systemd service.

free_memory()

Get the amount of free RAM available on the system.