]> git.pld-linux.org Git - packages/nfs-utils.git/commitdiff
drobne zmiany
authorwojtek <wojtek@pld.org.pl>
Tue, 8 Jun 1999 15:07:59 +0000 (15:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nfs.init -> 1.2
    nfs.sysconfig -> 1.1

nfs.init
nfs.sysconfig [new file with mode: 0644]

index a4409afa6a624069f011fdbcafa5a4c85f190606..b90f74addac1666b6f1222bb8b3a48ec5549a586 100644 (file)
--- a/nfs.init
+++ b/nfs.init
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # nfs           This shell script takes care of starting and stopping
 #               the NFS services. Later we might add NIS too.
@@ -9,8 +9,6 @@
 #              which is configured via the /etc/exports file.
 # probe: true
 
-export PATH=/bin:/sbin:/usr/bin:/usr/sbin
-
 # Source function library.
 . /etc/rc.d/init.d/functions
 
@@ -18,31 +16,32 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 . /etc/sysconfig/network
 
 # Check that networking is up.
-[ ${NETWORKING} = "no" ] && exit 0
-
-# Try to define nicelevel ...
-NICE="nice -n 5"
+[ "${NETWORKING}" = "no" ] && exit 0
 
 [ -f /usr/sbin/rpc.nfsd ] || exit 0
 [ -f /usr/sbin/rpc.mountd ] || exit 0
 [ -f /etc/exports ] || exit 0
 
+# Source networking configuration
+if [ -f /etc/sysconfig/nfs ]; then
+    . /etc/sysconfig/nfs
+fi    
 # See how we were called.
 case "$1" in
   start)
        # Start daemons.
-       echo -n "Starting NFS services: "
-       $NICE rpc.mountd
-       $NICE rpc.nfsd
-       echo done
+       show Starting rpc.mountd
+       daemon rpc.mountd
+       show Starting rpc.nfsd
+       daemon rpc.nfsd
        touch /var/lock/subsys/nfs
        ;;
   stop)
        # Stop daemons.
-       echo -n "Shutting down NFS services: "
-       killall -TERM rpc.mountd
-       killall -TERM rpc.nfsd
-       echo done
+       show Shutting down rpc.mountd
+       killproc rpc.mountd
+       show Shutting down rpc.nfsd
+       killproc rpc.nfsd
        rm -f /var/lock/subsys/nfs
        ;;
   status)
diff --git a/nfs.sysconfig b/nfs.sysconfig
new file mode 100644 (file)
index 0000000..2728230
--- /dev/null
@@ -0,0 +1,4 @@
+# Set nice level for rpc.mountd & rpc.nfsd
+
+# Define services nice level
+SERVICE_RUN_NICE_LEVEL="+1"
This page took 0.103889 seconds and 4 git commands to generate.