pi_portal.installation.steps.bases.service_step

ServiceStepBase class.

class pi_portal.installation.steps.bases.service_step.ServiceDefinition(service_name, system_v_service_name, systemd_unit_name)[source]

A Linux service.

Parameters:
  • service_name (str) –

  • system_v_service_name (str) –

  • systemd_unit_name (str) –

class pi_portal.installation.steps.bases.service_step.ServiceStepBase(log)[source]

Linux service management installer step.

Parameters:

log (Logger) –

disable()[source]

Disable the service.

Return type:

None

enable()[source]

Enable the service.

Return type:

None

abstract invoke()

Invoke this step.

Return type:

None

start()[source]

Start the service.

Return type:

None

stop()[source]

Stop the service.

Return type:

None