]> git.pld-linux.org Git - packages/nfs-utils.git/blobdiff - nfs.init
- change checkconfig priotities (mountd must be started before idmapd)
[packages/nfs-utils.git] / nfs.init
index 913eca666c9cbcdb51381a15b582a080eedce240..a2f9fb1a931bec84b3792e0be736e0bc5f311c47 100644 (file)
--- a/nfs.init
+++ b/nfs.init
@@ -3,7 +3,7 @@
 # nfs          This shell script takes care of starting and stopping
 #              the NFS services.
 #
-# chkconfig:   345 60 20
+# chkconfig:   345 12 84
 # description: NFS is a popular protocol for file sharing across TCP/IP \
 #              networks. This service provides NFS server functionality, \
 #              which is configured via the /etc/exports file.
@@ -101,6 +101,7 @@ case "$1" in
   restart)
        stop
        start
+       /sbin/service idmapd status >/dev/null && /sbin/service idmapd restart
        ;;
   reload|force-reload)
        if [ -f /var/lock/subsys/nfs ]; then
@@ -109,6 +110,7 @@ case "$1" in
                /usr/sbin/exportfs -r
                [ $? -ne 0 ] && RETVAL=7
                [ $RETVAL -eq 0 ] && ok || died
+               /sbin/service idmapd status >/dev/null && /sbin/service idmapd restart
        else
                msg_not_running "NFS"
                exit 7
This page took 0.052202 seconds and 4 git commands to generate.