System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to restart (Reread) samba and nfs

SOLVED
Go to solution
senthil_kumar_1
Super Advisor

how to restart (Reread) samba and nfs

Hi

pls tell me how to restart (Reread) samba and nfs.
4 REPLIES
T G Manikandan
Honored Contributor

Re: how to restart (Reread) samba and nfs

samba
/etc/init.d/samba stop
/etc/init.d/samba start

nfs
/etc/init.d/nfs stop
/etc/init.d/nfs start
Ganesan R
Honored Contributor

Re: how to restart (Reread) samba and nfs

Hi Senthilkumar,

In linux all the startup scripts will be there in /etc/init.d whereas in HP-UX it will be in /sbin/init.d

For samba,
/sbin/init.d/samba stop
/sbin/init.d/samba start

There are three services available as for as NFS is concern

/sbin/init.d/nfs.core stop/start
/sbin/init.d/nfs.client stop/start
/sbin/init.d/nfs.server stop/start

You can stop and start whichever service you need.

Best wishes,

Ganesh.
Heironimus
Honored Contributor
Solution

Re: how to restart (Reread) samba and nfs

If you just need to reread the configuration, modern versions of Samba check to see if smb.conf has changed and reread it by themselves.

If you're just changing NFS exports on the server side you don't need to restart anything, just run "exportfs -a" to reload /etc/exports.
點燃
Valued Contributor

Re: how to restart (Reread) samba and nfs

To restart samba,

/sbin/init.d/samba stop
/sbin/init.d/samba start

Also have a look on this thread,

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=994935

-------------------------------------
Regards!
Man's mind, once stretched by a new idea, never regains its original dimensions