opnsense-src/libexec/rc
Olivier Certner 2d5e13c86a
rc/tests: Fix process flags checks using ps(1)
These checks use ps(1) with both the '-p' and '-a' flags, which worked
so far as ps(1)'s '-a' option was buggy.  Since the fix in commit
"ps(1): Make '-a' and '-A' always show all processes"
(93a94ce731a89b56), such a command-line always selects all processes,
making the specified '-p' useless and the test wrong.  Remove the
useless '-a'.

While here, remove the redundant '-x', as '-p' implies '-x' by default.

MFC after:      1 day
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D50201

(cherry picked from commit 646375408742dd5ed9abb174a621a3f8f65a56ef)
(cherry picked from commit a69fe62604021f120206e4064ca7463195aeb3a0)

Approved by:    re (cperciva)
2025-05-13 14:41:32 +02:00
..
rc.d Revert "ntpd: Use the ntpd -u option in preference to the rc su plumbing" 2025-03-11 10:59:10 -07:00
tests rc/tests: Fix process flags checks using ps(1) 2025-05-13 14:41:32 +02:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netstart Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
network.subr rc: network.subr update consitency with older change (v6/v4 order) 2024-09-28 10:35:11 +00:00
pccard_ether Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.bsdextended Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.conf rc: Document rtadvd_flags 2025-01-14 14:14:24 +00:00
rc.firewall Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.initdiskless rc.initdiskless: Disable soft-updates in mdmfs (again) 2024-03-29 09:53:54 -04:00
rc.resume Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.shutdown Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.subr rc.subr: Consistently use an absolute path for sysrc 2024-10-02 11:27:00 +02:00
rc.suspend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00