HomeFreeBSD

Allow rc.d script to provide "status" method, even if it does not

Description

Allow rc.d script to provide "status" method, even if it does not
define procname or have a PID file. This might be useful for cases,
such as mounting local FS, when there is no running daemon
still some other persistent state in the system which status
can be checked.

It is still possible to have a status method before this by having
extra_commands="status", but it's not obvious and might give
an script writer some extra legwork to figure out how and why
the straight method is not working.

Reviewed by: cy
MFC after: 1 week
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D31614

Details

Provenance
sobomaxAuthored on Aug 20 2021, 4:43 PM
Reviewer
cy
Differential Revision
D31614: Allow rc.d script to provide "status" method without having a procname/PID file
Parents
rGf12b1b8b47bf: Remove unused function mana_reset_counters.
Branches
Unknown
Tags
Unknown