Bug 266494 - neither service(8) rc.subr(8) document enable/disable commands
Summary: neither service(8) rc.subr(8) document enable/disable commands
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-19 10:48 UTC by Mina Galić
Modified: 2022-09-19 10:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mina Galić freebsd_triage 2022-09-19 10:48:05 UTC
While the error output of

service sshd blah

prints:

/etc/rc.d/sshd: unknown directive 'blah'.
Usage: /etc/rc.d/sshd [fast|force|one|quiet](start|stop|restart|rcvar|enable|disable|delete|enabled|describe|extracommands|configtest|keygen|reload|status|poll)


service itself does not document that it provides the commands 'enable', 'disable' and 'enabled'

rc.subr documents enabled, but not 'enable' and 'disable'.

in rc.subr's code, the function documentation for rc_run_command, looks like the copy in the man page, and also only documents enabled, but not enable and disable.