SOURCES: rquotad.init, rquotad.sysconfig - added REMOTE_QUOTA_SETT...

kosmo kosmo at pld-linux.org
Fri Oct 13 11:17:02 CEST 2006


Author: kosmo                        Date: Fri Oct 13 09:17:02 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added REMOTE_QUOTA_SETTING option
- added RQUOTADOPTIONS option

---- Files affected:
SOURCES:
   rquotad.init (1.9 -> 1.10) , rquotad.sysconfig (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/rquotad.init
diff -u SOURCES/rquotad.init:1.9 SOURCES/rquotad.init:1.10
--- SOURCES/rquotad.init:1.9	Mon Jul  7 02:22:48 2003
+++ SOURCES/rquotad.init	Fri Oct 13 11:16:56 2006
@@ -35,6 +35,12 @@
 # Sanity checks
 [ -x /usr/sbin/rpc.rquotad ] || exit 0
 
+if is_yes "$REMOTE_QUOTA_SETTING"; then
+    RQUOTADOPTIONS="$RQUOTADOPTIONS --setquota"
+else
+    RQUOTADOPTIONS="$RQUOTADOPTIONS --no-setquota"
+fi
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -43,7 +49,7 @@
 	if [ ! -f /var/lock/subsys/rquotad ]; then
 		# Start daemons.
 		msg_starting "NFS quotas"
-		daemon rpc.rquotad
+		daemon rpc.rquotad $RQUOTADOPTIONS
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rquotad
 	else

================================================================
Index: SOURCES/rquotad.sysconfig
diff -u SOURCES/rquotad.sysconfig:1.1 SOURCES/rquotad.sysconfig:1.2
--- SOURCES/rquotad.sysconfig:1.1	Wed Dec  1 15:46:21 1999
+++ SOURCES/rquotad.sysconfig	Fri Oct 13 11:16:57 2006
@@ -1,3 +1,8 @@
 # Define nice level for rpc.rquotad daemon
 SERVICE_RUN_NICE_LEVEL="+0"
 
+# Allow remote quota setting
+REMOTE_QUOTA_SETTING=no
+
+# Options for rquotad
+RQUOTADOPTIONS=""
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rquotad.init?r1=1.9&r2=1.10&f=u
    http://cvs.pld-linux.org/SOURCES/rquotad.sysconfig?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list