Openrc Operations¶
Manage OpenRC init services.
Facts used in these operations: openrc.OpenrcEnabled, openrc.OpenrcStatus.
openrc.service¶
Manage the state of OpenRC services.
openrc.service(
    service: str, running=True, restarted=False, reloaded=False, command: str | None=None,
    enabled: bool | None=None, runlevel="default", **kwargs,
)
- service: name of the service to manage 
- running: whether the service should be running 
- restarted: whether the service should be restarted 
- reloaded: whether the service should be reloaded 
- command: custom command to pass like: - rc-service <service> <command>
- enabled: whether this service should be enabled/disabled on boot 
- runlevel: runlevel to manage services for 
- Note:
- This operation also inherits all global arguments. 
 pyinfra 3.x
            pyinfra 3.x