Add an FreeBSD rc(8) service type

Authored by kqr on Jul 16 2018, 4:54 PM.

Description

Add an FreeBSD rc(8) service type

Summary:
Currently only supporting states "enable" (start), "disable" (stop),
"restart" (what it says on the tin), and "reload" (which blindly sends a HUP to
the relevant process; meaning if the process does not support this, it may
terminate on the unhandled signal (and since it is then enabled but not running,
it will be started by CF soon enough again, effectively accomplishing a reload
except in a very heavy-handed way)).

Example usage:

services:
    "ntpd"
      service_policy => "enable",
      service_method => rc_service;

Test Plan: n/a

Reviewers: kqr

Reviewed By: kqr

Differential Revision: https://dev.xkqr.org/D34

Details

Committed
kqrJul 16 2018, 5:16 PM
Pushed
kqrJul 16 2018, 5:16 PM
Reviewer
kqr
Differential Revision
D34: Add an FreeBSD rc(8) service type
Parents
rCFEcc74c39ed6c8: Allow cfmaster execd to connect to its own serverd
Branches
Unknown
Tags
Unknown