[Bug 266494] neither service(8) rc.subr(8) document enable/disable commands

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 19 Sep 2022 10:48:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266494

            Bug ID: 266494
           Summary: neither service(8) rc.subr(8) document enable/disable
                    commands
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: me@igalic.co
                CC: doc@FreeBSD.org

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.