Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stopping NFS + Portmap

Status
Not open for further replies.

Mag0007

MIS
Feb 15, 2005
829
US
I am trying to stop NFS and Portmap when the system starts up. What file or command should I look at?

stopsrc -s nfsd;
stopsrc -s portmap;

works fine, but will these settings take effect when I reboot the server?

 
for nfs:

edit /etc/inittab comment out the line with rc.nfs

for portmap:

edit /etc/rc.tcpip there are a couple of lines in there about starting portmap.

for giggles, make sure /etc/exports doesn't exist.

the stopsrc commands won't carry across boots. you could of course use these commands in a local startup script. that would work as well....
 
Thanks! How do I update my initab without rebooting?

 
vi should do nicely, just put a colon character before the line with rc.nfs

Breslau said:
edit /etc/inittab comment out the line with rc.nfs


HTH,

p5wizard
 
Just a tip on editting inittab; I believe you must use ': ' (colon space) to comment out a line in inittab on aix... just a :blah:blah gets interpreted as a regular line with null first field.

JurgyMan
 
correct. thanks :)

Also, how do I refresh inittab without rebooting the server?

kill -HUP <pid of init> ?

would that work
 
But if you only commented out then rcnfs entry like so:

:rcnfs:23456789:wait:/etc/rc.nfs > /dev/console 2>&1 # Start NFS Daemons

then telinit q won't do a thing to NFS, because rc.nfs is only run once: inittab entry has 'wait' - so inittab runs the command once - when going multiuser (runlevel 2 to 9) and waits for it to complete before going to the next entry.

If you want to stop nfs without rebooting, run the command

nfs.clean



HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top