freebsd-skq/sbin/pfctl
kp 86ab05f953 pf: Return non-zero from 'status' if pf is not enabled
In the pf rc.d script the output of `/etc/rc.d/pf status` or `/etc/rc.d/pf
onestatus` always provided an exit status of zero. This made it fiddly to
programmatically determine if pf was running or not.

Return a non-zero status if the pf module is not loaded, extend pfctl to have
an option to return an error status if pf is not enabled.

PR:		228632
Submitted by:	James Park-Watt <jimmypw AT gmail.com>
MFC after:	1 week
2018-06-06 19:36:37 +00:00
..
tests
Makefile
Makefile.depend
parse.y
pf_print_state.c
pfctl_altq.c
pfctl_optimize.c
pfctl_osfp.c
pfctl_parser.c
pfctl_parser.h
pfctl_qstats.c
pfctl_radix.c
pfctl_table.c
pfctl.8
pfctl.c
pfctl.h