Expand description
§fraisier-adapter-rc
The RcService adapter: a ServiceAdapter that drives a FreeBSD rc.d
service through the service(8) CLI (PRD §6.3 — shell out in v1.0).
§Configuration
Read per call from AdapterCtx::settings (the [service] table):
[service]
adapter = "rc"
name = "fraiseql" # the rc.d service name (the `service <name> …` argument)§service(8) argument order
Unlike systemctl <verb> <unit>, FreeBSD’s service takes the name before
the command: service <name> restart, service <name> status. The status
sub-command reports "<name> is running as pid N." (exit 0) or
"<name> is not running." (exit 1); RcService::status reads that text and
falls back to the exit code, so a stopped service is a normal running: false
result rather than an error.
§Locality
By default service runs on the local host; build with
RcService::with_transport and a Transport::Ssh to run it on a remote
host (the multi-host rollout does this per host). The adapter never assumes
privilege — escalation (sudo) is the operator’s concern.
Structs§
- RcService
- A
ServiceAdapterbacked by FreeBSD’sservice(8).