Bsdinit Operations

Manage BSD init services (/etc/rc.d, /usr/local/etc/rc.d).

Facts used in these operations: server.Os, bsdinit.RcdStatus.

bsdinit.service

Manage the state of BSD init services.

bsdinit.service(
     service: 'str',
     running=True,
     restarted=False,
     reloaded=False,
     command: 'str | None' = None,
     enabled: 'bool | None' = None,
     **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: /etc/rc.d/<service> <command>

  • enabled: whether this service should be enabled/disabled on boot

Note

This operation also inherits all global arguments.