LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-09-2024, 09:39 PM   #1
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 229

Rep: Reputation: 45
Slackware-current, A manual rc.nfsd start execution , then , rc.nfsd stop , rpc processes still running & patch .


Hello Pat , When manually running rc.nfsd start , just for a momentary copying of files , then , rc.nfsd stop , I noticed rpc processes still running .
Here is a small patch , not well tested but here goes .

Code:
# diff -u rc.nfsd.orig rc.nfsd
--- rc.nfsd.orig        2023-08-06 11:20:50.000000000 -0800
+++ rc.nfsd     2024-04-09 18:14:00.647157981 -0800
@@ -85,6 +85,12 @@
   killall nfsd 2> /dev/null
   sleep 1
   killall -9 nfsd 2> /dev/null # make sure :)
+  # If basic RPC services are running, stop them:
+  if ps axc | grep -q rpc.statd ; then
+    if [ ! -x /etc/rc.d/rc.rpc ]; then
+      sh /etc/rc.d/rc.rpc stop
+    fi
+  fi
   killall rpc.rquotad 2> /dev/null
   /usr/sbin/exportfs -au 2> /dev/null
 }
And attached is what testing I have done ...
ps: I don't use ipv6 so it is disabled at boot .
Attached Files
File Type: txt slackware-current-update-20240409.txt (3.8 KB, 2 views)

Last edited by babydr; 04-10-2024 at 08:14 PM.
 
Old 04-10-2024, 12:47 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 779

Rep: Reputation: 246Reputation: 246Reputation: 246
What happens if that machine has other RPC services running?
 
1 members found this post helpful.
Old 04-10-2024, 07:29 PM   #3
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 229

Original Poster
Rep: Reputation: 45
@ Jayjwa , Then /etc/rc.d/rc.rpc would be set executable .

Last edited by babydr; 04-10-2024 at 08:13 PM. Reason: Further investigation , left out check for big mouth's statement ,
 
Old 04-12-2024, 07:59 PM   #4
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 229

Original Poster
Rep: Reputation: 45
would someone please look at this ? sinc the patch was editted for correctness ...?
 
Old 04-16-2024, 06:35 PM   #5
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 229

Original Poster
Rep: Reputation: 45
The updated patch . Again , Hoping someone will at least look at it . Tia , JimL

Code:
# diff -u rc.nfsd.orig rc.nfsd
--- rc.nfsd.orig        2024-04-16 15:30:30.741074598 -0800
+++ rc.nfsd     2024-04-16 15:22:53.899067498 -0800
@@ -85,6 +85,12 @@
   killall nfsd 2> /dev/null
   sleep 1
   killall -9 nfsd 2> /dev/null # make sure :)
+  # If basic RPC services are running, stop them:
+  if ps axc | grep -q rpc.statd ; then
+    if [ ! -x /etc/rc.d/rc.rpc ]; then
+      sh /etc/rc.d/rc.rpc stop
+    fi
+  fi
   killall rpc.rquotad 2> /dev/null
   /usr/sbin/exportfs -au 2> /dev/null
 }
 
Old 04-16-2024, 07:06 PM   #6
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469
Quote:
Originally Posted by babydr View Post
The updated patch . Again , Hoping someone will at least look at it . Tia , JimL

Code:
# diff -u rc.nfsd.orig rc.nfsd
--- rc.nfsd.orig        2024-04-16 15:30:30.741074598 -0800
+++ rc.nfsd     2024-04-16 15:22:53.899067498 -0800
@@ -85,6 +85,12 @@
   killall nfsd 2> /dev/null
   sleep 1
   killall -9 nfsd 2> /dev/null # make sure :)
+  # If basic RPC services are running, stop them:
+  if ps axc | grep -q rpc.statd ; then
+    if [ ! -x /etc/rc.d/rc.rpc ]; then
+      sh /etc/rc.d/rc.rpc stop
+    fi
+  fi
   killall rpc.rquotad 2> /dev/null
   /usr/sbin/exportfs -au 2> /dev/null
 }
I've looked at it. I'm more generous about automatically starting things than stopping them, I guess.
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpc-src/tcp: nfsd : got error -104 leeono Linux - Server 0 04-17-2014 12:44 PM
starting rpc.nfsd results in freezing console tilman1 Linux - Kernel 2 11-27-2010 12:01 PM
NFSd fails to start due to RPC? TexasDex Linux - Software 10 03-23-2010 02:02 AM
don't have nfsd mount point in /proc/fs/nfsd...can't start NFS as a result alirezan1 Linux - Newbie 1 11-19-2008 07:57 AM
problem with nfsd and rpc.portmap jpsatlinuxquestions Slackware 7 08-06-2008 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration