svn commit: r223644 - head/etc/rc.d

Sergey Kandaurov pluknet at FreeBSD.org
Tue Jun 28 14:26:35 UTC 2011


Author: pluknet
Date: Tue Jun 28 14:26:34 2011
New Revision: 223644
URL: http://svn.freebsd.org/changeset/base/223644

Log:
  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

Modified:
  head/etc/rc.d/quota

Modified: head/etc/rc.d/quota
==============================================================================
--- head/etc/rc.d/quota	Tue Jun 28 14:10:39 2011	(r223643)
+++ head/etc/rc.d/quota	Tue Jun 28 14:26:34 2011	(r223644)
@@ -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"


More information about the svn-src-all mailing list