Bug 255115 - [PATCH] Allow service(8) to run rc.d scripts without arguments
Summary: [PATCH] Allow service(8) to run rc.d scripts without arguments
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-16 10:59 UTC by sd
Modified: 2021-04-16 10:59 UTC (History)
0 users

See Also:


Attachments
patch (649 bytes, patch)
2021-04-16 10:59 UTC, sd
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sd 2021-04-16 10:59:00 UTC
Created attachment 224157 [details]
patch

Current service(8) shows help message when running script without arguments (e.g. service motd). At the same time rc.d scripts allow no arguments and show script usage and their commands:
# /etc/rc.d/motd
Usage: /etc/rc.d/motd [fast|force|one|quiet](start|stop|restart|rcvar|enable|disable|delete|enabled|describe|extracommands)

It's quite useful when you want to see possible arguments for some service.