Bug 269782 - service(8) Give service a quiet option
Summary: service(8) Give service a quiet option
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-rc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-23 14:49 UTC by Dan Mahoney
Modified: 2023-07-17 12:59 UTC (History)
3 users (show)

See Also:


Attachments
patch file for shell script and man page (2.72 KB, patch)
2023-02-23 14:49 UTC, Dan Mahoney
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Mahoney 2023-02-23 14:49:58 UTC
Created attachment 240345 [details]
patch file for shell script and man page

Pretty trivial patch to give service(8) and associated manpage a "-q (quiet)" option, useful when calling from cron.

Note that this specifically only hits when calling "restart" and other commands, but will not quiet an error like service not existing (cron should still make noise on that, I'd think).
Comment 1 Mina Galić freebsd_triage 2023-02-23 15:00:21 UTC
hi Dan,

consider submitting this via github, as per our recent update to the contributions guideline: https://docs.freebsd.org/en/articles/contributing/#contrib-general

maybe remotely related: one of our developers recently abandoned a patch that would quiet down failures, https://reviews.freebsd.org/D38295
Comment 2 Mina Galić freebsd_triage 2023-02-23 15:01:19 UTC
one feedback i can already give you is that the man page will need a .Dd update