LinuxQuestions.org
Review your favorite Linux distribution.
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 03-19-2020, 06:46 PM   #1
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Rep: Reputation: 45
/etc/rc.d/rc.nfsd hmmm?


#/etc/rc.d/rc.nfsd start
# /etc/rc.d/rc.nfsd stop
# ps auxww |grep rpc
root 239 0.0 0.0 0 0 ? I< Mar19 0:00 [rpciod]
rpc 20313 0.0 0.0 3012 1960 ? Ss 00:41 0:00 /sbin/rpcbind -l -w
rpc 20318 0.0 0.0 3448 2512 ? Ss 00:41 0:00 /sbin/rpc.statd

Shall this still be running?

Last edited by slacktroll; 03-19-2020 at 06:47 PM.
 
Old 03-19-2020, 07:58 PM   #2
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Yes. Different service and different rc.d script.
 
Old 03-19-2020, 08:01 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
rc.nfsd is only supposed to stop rpc.mountd and rpc.rquotad. You'd need to run /etc/rc.d/rc.rpc stop those proceses.
 
Old 03-20-2020, 06:31 AM   #4
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by slacktroll View Post
rpc 20318 0.0 0.0 3448 2512 ? Ss 00:41 0:00 /sbin/rpc.statd

Shall this still be running?
From rc.inet2:
Quote:
# Start rpc.portmap, /sbin/rpc.lockd, and /sbin/rpc.statd if we find NFS
so they are not started, nor stopped, by rc.nfsd

And from rc.nfsd itself:
Code:
nfsd_stop() {
  killall rpc.mountd 2> /dev/null
  killall nfsd 2> /dev/null
  sleep 1
  killall -9 nfsd 2> /dev/null # make sure :)
  killall rpc.rquotad 2> /dev/null
  /usr/sbin/exportfs -au 2> /dev/null
}
It will stop only the NFS server support, you may still be a NFS client so the other rpc services are not stopped.
 
Old 03-20-2020, 10:52 AM   #5
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by ehartman
From rc.inet2:
Quote:
# Start rpc.portmap, /sbin/rpc.lockd, and /sbin/rpc.statd if we find NFS
so they are not started, nor stopped, by rc.nfsd
# ps auxww |grep rpc
root 239 0.0 0.0 0 0 ? I< 13:50 0:00 [rpciod]
root 5583 0.0 0.0 3904 2332 pts/5 S+ 16:49 0:00 grep rpc
# sh /etc/rc.d/rc.nfsd start
Starting RPC portmapper: /sbin/rpcbind -l -w
Starting RPC NSM (Network Status Monitor): /sbin/rpc.statd
Starting NFS server daemons:
/usr/sbin/exportfs -r
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.25.3:/slackware".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

/usr/sbin/rpc.rquotad
/usr/sbin/rpc.nfsd 8
/usr/sbin/rpc.mountd
# ps auxww |grep rpc
root 239 0.0 0.0 0 0 ? I< 13:50 0:00 [rpciod]
rpc 5598 0.0 0.0 3012 2180 ? Ss 16:49 0:00 /sbin/rpcbind -l -w
rpc 5603 0.0 0.0 3448 2616 ? Ss 16:49 0:00 /sbin/rpc.statd
root 5607 0.0 0.0 4688 640 ? Ss 16:49 0:00 /usr/sbin/rpc.rquotad
root 5619 0.0 0.0 3700 496 ? Ss 16:49 0:00 /usr/sbin/rpc.mountd
root 5621 0.0 0.0 3904 2300 pts/5 S+ 16:49 0:00 grep rpc

# sh /etc/rc.d/rc.nfsd stop
# ps auxww |grep statd
rpc 5603 0.0 0.0 3448 2616 ? Ss 16:49 0:00 /sbin/rpc.statd
root 5634 0.0 0.0 3904 2296 pts/5 S+ 16:49 0:00 grep statd

? :-)
 
Old 03-20-2020, 11:27 AM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by slacktroll View Post
Code:
# ps auxww |grep rpc
root       239  0.0  0.0      0     0 ?        I<   13:50   0:00 [rpciod]
root      5583  0.0  0.0   3904  2332 pts/5    S+   16:49   0:00 grep rpc
# sh /etc/rc.d/rc.nfsd start
Starting RPC portmapper:  /sbin/rpcbind -l -w 
Starting RPC NSM (Network Status Monitor):  /sbin/rpc.statd 
Starting NFS server daemons:
  /usr/sbin/exportfs -r
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.25.3:/slackware".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

  /usr/sbin/rpc.rquotad 
  /usr/sbin/rpc.nfsd  8
  /usr/sbin/rpc.mountd 
# ps auxww |grep rpc
root       239  0.0  0.0      0     0 ?        I<   13:50   0:00 [rpciod]
rpc       5598  0.0  0.0   3012  2180 ?        Ss   16:49   0:00 /sbin/rpcbind -l -w
rpc       5603  0.0  0.0   3448  2616 ?        Ss   16:49   0:00 /sbin/rpc.statd
root      5607  0.0  0.0   4688   640 ?        Ss   16:49   0:00 /usr/sbin/rpc.rquotad
root      5619  0.0  0.0   3700   496 ?        Ss   16:49   0:00 /usr/sbin/rpc.mountd
root      5621  0.0  0.0   3904  2300 pts/5    S+   16:49   0:00 grep rpc

# sh /etc/rc.d/rc.nfsd stop
# ps auxww |grep statd
rpc       5603  0.0  0.0   3448  2616 ?        Ss   16:49   0:00 /sbin/rpc.statd
root      5634  0.0  0.0   3904  2296 pts/5    S+   16:49   0:00 grep statd
? :-)
Please learn to use [code][/code] tags. It greatly helps with readability and will allow lines to start with spaces and keep extra spaces in between characters.

rpc is required to run nfsd, but it can run on it's own without nfsd. This is detailed in the /etc/rc.d/rc.nfsd, where it states that "If basic RPC services are not running, start them:" and then it runs /etc/rc.d/rc.rpc start. There is nothing stopping ALL rpc services when you stop nfsd, just stopping the programs that are explicitly started within rc.nfsd (and not part of rc.rpc), which is exportfs, rpc.rquotad, rpc.mountd, and rpc.nfsd (although it just kills the last one via killall nfsd).

Hopefully this clears it up!
 
Old 03-20-2020, 01:19 PM   #7
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Original Poster
Rep: Reputation: 45
Okay thank your!
Cheers :-)
Code:
 _   _                 _        
| |_| |__   __ _ _ __ | | _____ 
| __| '_ \ / _` | '_ \| |/ / __|
| |_| | | | (_| | | | |   <\__ \
 \__|_| |_|\__,_|_| |_|_|\_\___/
 
1 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
Allow rc.nfsd to be started without /etc/exports (suggestion for current) atelszewski Slackware 2 07-04-2014 10:01 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
Hmmm, certain websites inaccessible from Linux. (Why?) aethereal Linux - General 13 11-24-2001 05:09 PM
Hmmm mikeyt_3333 Linux - Security 5 08-13-2001 05:33 AM
hmmm... opera problem isajera Linux - General 5 08-01-2001 04:09 PM

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

All times are GMT -5. The time now is 07:19 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