HomeFreeBSD

Add new rc keywords: enable, disable, delete

Description

Add new rc keywords: enable, disable, delete

This adds new keywords to rc/service to enable/disable a service's
rc.conf(5) variable and "delete" to remove the variable.

When the "service_delete_empty" variable in rc.conf(5) is set to "YES"
(default is "NO") an rc.conf.d file (in /etc/ or /usr/local/etc) is
deleted if empty after modification using "service $foo delete".

Submitted by: lme (modified)
Reviewed by: 0mp (previous version), lme, bcr
Relnotes: yes
Sponsored by: Smule, Inc.
Differential Revision: https://reviews.freebsd.org/D17113

Details

Provenance
dteskeAuthored on
Reviewer
0mp
Differential Revision
D17113: Add new rc keywords: enable, disable, delete
Parents
rS339970: Remove unnecessary include from libstand.
Branches
Unknown
Tags
Unknown