from pyinfra.operations import openrc
# Manage an OpenRC service
openrc.service(
name="Ensure nginx is running",
service="nginx",
running=True,
enabled=True,
)
# Enable a service for a specific runlevel
openrc.service(
name="Enable sshd on boot runlevel",
service="sshd",
enabled=True,
runlevel="boot",
)