Fix NFS boot bug due to missing dep rpcbind.service to mountd.service
authorAndy Witter <awitter@georgialibraries.org>
Tue, 8 Jan 2019 21:18:09 +0000 (16:18 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Tue, 8 Jan 2019 21:18:09 +0000 (16:18 -0500)
templates/setup-head.sh
templates/setup.sh

index f162c71..d2e9884 100755 (executable)
@@ -132,6 +132,9 @@ if [ -e head_file_apt.list ]
         $APT_TOOL update && $APT_TOOL -y install  $(cat head_file_apt.list)
 fi
 
+### fix NFS start bug in systemd
+systemctl add-wants nfs-mountd.service rpcbind.service
+
 ### Fix ejabberd/apparmor bug - commented out because it's not working
 #FixAppArmorEJabberD
 
index 59d8771..e9d1d75 100755 (executable)
@@ -216,6 +216,12 @@ if [ -e tar_file_apt.list ]
        $APT_TOOL -y install $(cat tar_file_apt.list) 2>&1 | tee -a "$INSTALL_LOG"
 fi
 
+### Fix bug in NFS that caused failure to start at boot time
+if cat tar_file_apt.list | grep -q nfs
+then
+       systemctl add-wants nfs-mountd.service rpcbind.service
+fi
+
 ### Fix ejabberd/apparmor bug - commented out because it didn't work
 #FixAppArmorEJabberD
 
@@ -787,6 +793,7 @@ then
         fi
         chown -R opensrf:opensrf /storage/reports-output
        $APT_TOOL install nfs-kernel-server
+       systemctl add-wants nfs-mountd.service rpcbind.service
 fi
 
 ### make sure the permissions are correct.