FreeBSD Bugzilla – Attachment 228280 Details for
Bug 206511
'service -e' generates warnings in /var/log/user.log
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposal patch (add a quiet mode)
file_206511.txt (text/plain), 1.06 KB, created by
SimpleRezo
on 2021-09-30 08:43:39 UTC
(
hide
)
Description:
Proposal patch (add a quiet mode)
Filename:
MIME Type:
Creator:
SimpleRezo
Created:
2021-09-30 08:43:39 UTC
Size:
1.06 KB
patch
obsolete
>--- service.orig 2021-09-30 10:40:09.473621000 +0200 >+++ service 2021-09-30 10:40:48.593156000 +0200 >@@ -45,11 +45,12 @@ > echo "-R Stop and start enabled $local_startup services" > echo "-l List all scripts in /etc/rc.d and $local_startup" > echo '-r Show the results of boot time rcorder' >+ echo '-q Quiet mode' > echo '-v Verbose' > echo '' > } > >-while getopts 'j:ehlrRv' COMMAND_LINE_ARGUMENT ; do >+while getopts 'j:ehlrRqv' COMMAND_LINE_ARGUMENT ; do > case "${COMMAND_LINE_ARGUMENT}" in > j) JAIL="${OPTARG}" ;; > e) ENABLED=eopt ;; >@@ -58,10 +59,17 @@ > r) RCORDER=ropt ;; > R) RESTART=Ropt ;; > v) VERBOSE=vopt ;; >+ q) QUIET=qopt ;; > *) usage ; exit 1 ;; > esac > done > shift $(( $OPTIND - 1 )) >+ >+if [ -n "${QUIET}" ]; then >+ warn () { >+ echo -n >+ } >+fi > > if [ -n "${JAIL}" ]; then > # We need to rebuild the command line before passing it on.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206511
: 228280