Source code for pi_portal.installation.steps.step_kill_motion

"""StepKillMotion class."""

from .bases import service_step


[docs]class StepKillMotion(service_step.ServiceStepBase): """Kill the motion process and remove it from startup.""" service = service_step.ServiceDefinition( service_name="motion", system_v_service_name="motion", systemd_unit_name="motion.service", )
[docs] def invoke(self) -> None: """Kill the motion process and remove it from startup.""" self.stop() self.disable()