diff options
author | pluknet <pluknet@FreeBSD.org> | 2011-06-28 14:26:34 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2011-06-28 14:26:34 +0000 |
commit | 0b9b3ff55fe43a1809945421c3b1367da1896f0e (patch) | |
tree | 4d110d06fa3aa172323201d5ce5405436e567026 /etc/rc.d/quota | |
parent | b1a34d6c3bddb3524356c692c71ec72458df5d2f (diff) | |
download | FreeBSD-src-0b9b3ff55fe43a1809945421c3b1367da1896f0e.zip FreeBSD-src-0b9b3ff55fe43a1809945421c3b1367da1896f0e.tar.gz |
Run load_rc_config before stop_cmd definition, so that ${quotaoff_flags}
is correctly expanded inside stop_cmd instead of getting nothing.
PR: conf/157687
Reported by: Dmitry Banschikov <d.banschikov peterhost ru>
MFC after: 1 week
Diffstat (limited to 'etc/rc.d/quota')
-rwxr-xr-x | etc/rc.d/quota | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/quota b/etc/rc.d/quota index 6432f50..edc90ef 100755 --- a/etc/rc.d/quota +++ b/etc/rc.d/quota @@ -14,6 +14,7 @@ name="quota" rcvar=`set_rcvar` +load_rc_config $name start_cmd="quota_start" stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}" @@ -30,5 +31,4 @@ quota_start() echo ' done.' } -load_rc_config $name run_rc_command "$1" |