History log of /freebsd-current/usr.sbin/sysrc/sysrc.8
Revision Date Author Comments
# fa9896e0 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/


# 1a0bd266 03-Apr-2022 Jose Luis Duran <jlduran@gmail.com>

sysrc.8: Mention it requires chroot(8)

Option -R uses chroot(8). Mention it in the corresponding section.

MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D34630


# da5069e1 22-Apr-2019 Enji Cooper <ngie@FreeBSD.org>

Update the spelling of my name

Previous spellings of my name (NGie, Ngie) weren't my legal spelling. Use Enji
instead for clarity.

While here, remove "All Rights Reserved" from copyrights I "own".

MFC after: 1 week


# 4f2f8d7d 26-Feb-2019 Mateusz Piotrowski <0mp@FreeBSD.org>

sysrc.8: Pet igor and mandoc

Reviewed by: bcr
Approved by: bcr (doc)
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D19348


# 2c212dcc 13-Jun-2016 Enji Cooper <ngie@FreeBSD.org>

Change my given name from "Garrett" to "Ngie"

A legal name change from "Garrett" to "Ngie", as well as a FreeBSD
account name change, is pending.

Approved by: re (hrs)


# 8f6e6509 29-Feb-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

jls(1) -> jls(8)

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 97ee0399 02-Feb-2016 Devin Teske <dteske@FreeBSD.org>

Revert r295169 and switch `\ ' to `" "'

MFC after: 3 days
X-MFC-to: stable/10
X-MFC-with: r295169, r295170, r295173, r295177


# 6350eae8 02-Feb-2016 Devin Teske <dteske@FreeBSD.org>

For +=/-=, add . and / to convenience characters

sysrc(8) supports key+=value and key-=value, but can be told what the
delimiter is by being passed as char1 (e.g., "sysrc key+=",value" to use a
comma as the delimiter instead of space). For convenience, if the first char
is alpha-numeric, it is assumed you wanted whitespace as the delimiter.

However, if you naively (as I just did) execute:
sysrc rc_conf_files+=/etc/rc.conf.other
the result is unexpected.

This commit makes `.' and `/' in-addition to alpha-numeric first-characters
to cause the default of whitespace to be used as the delimiter. This also
means that you can no longer use these as a delimiter.


# 613d7da7 02-Feb-2016 Devin Teske <dteske@FreeBSD.org>

Replace (Qo \ Qc) with (Qo (space) Qc)

When using col(1) piped to vim(1) as pager for man(1), the former sequence
of (Qo \ Qc) renders as "" without the space. Replace with (Qo (space) Qc)
which renders properly in more (all?) pagers.


# 4fb1de43 03-Nov-2015 Devin Teske <dteske@FreeBSD.org>

Add sysrc(8) support for "rc.conf.d" file(s) when given "-s name" to
indicate service(8) script. While here, add "-l" option for listing the
set of configuration file(s) considered (in order; separated by space).
Also add "-L" for exploring all configuration files and "-E" to omit
files that don't exist from operations.

Differential Revision: https://reviews.freebsd.org/D3551
Reviewed by: allanjude
MFC after: 1 week
X-MFC-to: stable/10
Relnotes: yes


# 8fdb5185 02-Sep-2015 Devin Teske <dteske@FreeBSD.org>

Fix mandoc(1) "WARNING: end of line whitespace"

MFC after: 3 days
X-MFC-to: stable/10


# 3ed46372 02-Sep-2015 Devin Teske <dteske@FreeBSD.org>

Remove non-functional examples.

MFC after: 3 days
X-MFC-to: stable/10


# 99d43aee 12-Aug-2015 Christian Brueffer <brueffer@FreeBSD.org>

Fix a few mandoc warnings.

MFC after: 1 week


# 3a40fd5e 04-Mar-2015 Devin Teske <dteske@FreeBSD.org>

sysrc(8): Add `key-=remove' and improve `key+=append' syntax

MFC after: 3 days
X-MFC-to: stable/10 stable/9


# e8f6aafb 04-Nov-2014 Devin Teske <dteske@FreeBSD.org>

Add EXAMPLES-section entry for new key+=append syntax of sysrc(8).

MFC after: 3 days
X-MFC-to: stable/10 stable/9
X-MFC-with: 274068
Thanks to: @SeanChittenden


# a7bdf21c 03-Nov-2014 Devin Teske <dteske@FreeBSD.org>

Add key+=append syntax to sysrc(8).

Reviewed by: shurd
MFC after: 3 days
X-MFC-to: stable/10 stable/9


# 7ee104ab 18-Jul-2014 Devin Teske <dteske@FreeBSD.org>

Oops, forgot to bump manual date/copyright in r268860.

MFC after: 3 days
X-MFC-to: stable/10, stable/9, ports
X-MFC-with: r268860


# e6c03065 18-Jul-2014 Devin Teske <dteske@FreeBSD.org>

Minor enhancements, bug fixes, and man-page adjustments.

+ Make `sysrc -x foo' produce error status if foo is unset.
NB: Reported by lme (everything else ``while I'm at it'')
+ Remove mention of SYSRC_VERBOSE from `sysrc --help' output.
NB: False documentation leftover from an ancient precursor.
+ Make `sysrc -qc foo' work the same as `sysrc -ic foo' when foo is unset
NB: For syntax convenience (my fingers know `-q' more than `-i').
+ Update description of `-c' flag in help message/manual.
+ Update description of `-q' flag in help message/manual.
+ Make `sysrc -vc foo' work as documented in the manual
NB: Show message stating whether foo is currently set.
+ Make `sysrc -vc foo=1' work as documented in the manual
NB: Show message stating how value of foo would be changed (if at all).
+ Remove odd usage of parentheses in `-R dir' section of manual.
+ Clarify syntax section of manual w/respect to sysctl(8) similarities.
+ Add new/missing people to the `THANKS TO' section of the manual.

Reported by: lme
MFC after: 3 days
X-MFC-to: stable/10, stable/9, ports


# 01c2b8ac 20-Jun-2014 Baptiste Daroussin <bapt@FreeBSD.org>

use .Mt to mark up email addresses consistently (part2)

PR: 191174
Submitted by: Franco Fichtner <franco@lastsummer.de>


# bc3ccb90 20-Nov-2013 Devin Teske <dteske@FreeBSD.org>

Revert SVN r257830 -- that feature was annoying and was removed long ago.
Was a momentary memory lapse induced by old code that was lying in my ~/bin


# f913e674 07-Nov-2013 Devin Teske <dteske@FreeBSD.org>

Document SYSRC_VERBOSE enviroment variable in the manual.


# 379cb6ba 07-Nov-2013 Devin Teske <dteske@FreeBSD.org>

Fix a bug with `-e' that broke sometime around when I added `-F'. Also,
revamp the `-e' output to truly be sh(1) compatible syntax (even if
passed in `-v' for verbose output).


# 4cc57221 07-Nov-2013 Devin Teske <dteske@FreeBSD.org>

Add a `-c' option for `check only' to determine if a value is set
(get command) or if the current value is the same as what is desired
(set command). In those cases, the return status is success.
Otherwise, if the variable is unset (get command) or set to a different
value that what is desired (set command), returns with error status.
This is useful for puppet integration as well as everyday scripting.


# 3e74984c 07-Nov-2013 Devin Teske <dteske@FreeBSD.org>

Add new `--version' long option for getting the version (good for
comparing against the ports revision).


# 385f5635 05-Jul-2013 Devin Teske <dteske@FreeBSD.org>

Update release info.


# 18b13239 05-Jul-2013 Devin Teske <dteske@FreeBSD.org>

Update copyright/date on the back of r252798.


# b2c577b5 05-Jul-2013 Devin Teske <dteske@FreeBSD.org>

Update sysrc(8) manual to coincide with r252797:

Do not inherit $SYSRC_VERBOSE from operating environment. The concern is
that when a user (such as myself) which has SYSRC_VERBOSE=1 in his/her
~/.bash_profile or such that when they are told to execute a command like:

hostname `sysrc -n hostname`

NOTE: To activate a recently configured hostname.

If $SYSRC_VERBOSE is set, then POLA is violated because the output of sysrc
is indirectly influenced (making for an inconsistent experience).


# 3dacd67e 06-Oct-2012 Joel Dahl <joel@FreeBSD.org>

mdoc: begin sentences on a new line.


# be15d0e4 06-Oct-2012 Joel Dahl <joel@FreeBSD.org>

Minor mdoc fix.


# 9a09c4db 05-Oct-2012 Joel Dahl <joel@FreeBSD.org>

Remove trailing whitespace.


# 50936af6 04-Oct-2012 Joel Dahl <joel@FreeBSD.org>

Fix HISTORY.


# 872d9e39 03-Oct-2012 Niclas Zeising <zeising@FreeBSD.org>

Sort manual page cross references.

Approved by: joel (mentor)


# f41e2a4d 03-Oct-2012 Niclas Zeising <zeising@FreeBSD.org>

Remove whitespace at EOL

Approved by: joel (mentor)


# 2a357efa 02-Oct-2012 Devin Teske <dteske@FreeBSD.org>

Import sysutils/sysrc from the ports tree (current version 5.1). Importing
disconnected under the WITH_BSDCONFIG flag (a good idea since this version of
sysrc(8) indeed requires the `sysrc.subr' module installed by bsdconfig(8)).

Multiple reasons sysrc should not simply continue to live in ports. The most
important being that it is tightly coupled with the base.

Approved by: adrian (co-mentor)