Add logger(1) support for daemons that are logging to stdout/stderr (mostly from
authorajacoutot <ajacoutot@openbsd.org>
Sat, 27 Feb 2021 09:28:04 +0000 (09:28 +0000)
committerajacoutot <ajacoutot@openbsd.org>
Sat, 27 Feb 2021 09:28:04 +0000 (09:28 +0000)
commit9cd4f3a55f2a6d6f69c7b6d26e397c1a5e05f45c
tree66691c3b8864b04b608704fad1cfad919361b9e7
parent71ec1a99d05ff0ab8e5f8e703d5640a36ace4bb5
Add logger(1) support for daemons that are logging to stdout/stderr (mostly from
the go ecosystem).
Properly handle failing daemon startup now that we have pipefail.

To take advantage of this new feature, just add foo_logger=facility to the
daemon rc.d(8) script or in rc.conf.local(8) or use rcctl:
rcctl set foo logger daemon.info

tweak for checking flags in rcctl(8) from martijn@
"this looks pretty good" deraadt@
ok sthen@
etc/rc.d/rc.subr
share/man/man8/rc.d.8
share/man/man8/rc.subr.8
usr.sbin/rcctl/rcctl.8
usr.sbin/rcctl/rcctl.sh