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: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-rc (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2021-04-16 10:59 UTC by sd
Modified: 2022-08-04 10:35 UTC (History)
3 users (show)

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.
Comment 1 Mateusz Piotrowski freebsd_committer 2022-07-26 15:03:06 UTC
That's a neat idea. I don't see any problems with this change.
Comment 2 Lars Engels freebsd_committer 2022-08-01 09:45:16 UTC
Yes please. This is a welcome change.