diff options
author | Doug Barton <dougb@FreeBSD.org> | 2009-10-10 22:17:03 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2009-10-10 22:17:03 +0000 |
commit | 70d4ef1ea19075a48d3dfe3012c6a1aba185c718 (patch) | |
tree | f49c4e3cc88efec4813ca1f389f8f77eca5d2ba0 /etc/rc.d/nfsclient | |
parent | 7c3a3fbe951ba9d6e13833751ec6b64b326445e6 (diff) | |
download | src-70d4ef1ea19075a48d3dfe3012c6a1aba185c718.tar.gz src-70d4ef1ea19075a48d3dfe3012c6a1aba185c718.zip |
In regards to the "Starting foo:" type messages at boot time, create and
employ a more generic solution, and use it in the individual rc.d scripts
that also have an $rc_quiet test:
1. Add check_startmsgs() to rc.subr.
2. In the rc.d scripts that use rc_quiet (and rc.subr) substitute
variations of [ -z "$rc_quiet" ] with check_startmsgs
3. In savecore add a trailing '.' to the end of the message to make it
more consistent with other scripts.
4. In newsyslog remove a : before the terminal '.' since we do not expect
there to be anything printed out in between to make it more consistent.
5. In the following scripts change "quotes" to 'quotes' where no variables
exist in the message: savecore pf newsyslog
6. In the following scripts substitute if/then/fi for the simpler (and
more consistent) check_startmsgs &&: faith stf
7. In the following scripts separate the "Starting foo:" from the terminal
'.' to make them more consistent: moused hostname pf
8. In nfsclient move the message to its own line to avoid a style bug
9. In pf rc_quiet does not apply to the _stop method, so remove the
test there.
10. In motd add 'quotes' around the terminal '.' for consistency
Notes
Notes:
svn path=/head/; revision=197947
Diffstat (limited to 'etc/rc.d/nfsclient')
-rwxr-xr-x | etc/rc.d/nfsclient | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.d/nfsclient b/etc/rc.d/nfsclient index 2b26d09da6dc..d28e45f6a2e9 100755 --- a/etc/rc.d/nfsclient +++ b/etc/rc.d/nfsclient @@ -22,7 +22,8 @@ nfsclient_start() # if [ -n "${nfs_access_cache}" ]; then - [ -z "${rc_quiet}" ] && echo "NFS access cache time=${nfs_access_cache}" + check_startmsgs && + echo "NFS access cache time=${nfs_access_cache}" if ! sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null; then warn "failed to set access cache timeout" fi |