LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 11-09-2007, 12:51 AM   #1
packets
Member
 
Registered: Oct 2005
Posts: 339

Rep: Reputation: 32
how to stop services


I'm new to Solaris so please bear with me.

After I install Linux, I usually disable services that are not relevant for startup like nfs,rpc,portmap,etc.

In Solaris, I done some ps -ef:

/usr/lib/nfs/nfs4cbd
/usr/sbin/rpcbind
/usr/lib/nfs/statd

These are the some that I want to disable. How can I disable them?

I done svcs and saw some of the ff:

online Nov_04 svc:/network/rpc/gss:default
online Nov_04 svc:/network/rpc/meta:default
online Nov_04 svc:/network/rpc/cde-calendar-manager:default
online Nov_04 svc:/network/rpc/cde-ttdbserver:tcp
online Nov_04 svc:/network/rpc/mdcomm:default
online Nov_04 svc:/network/rpc/metamed:default
online Nov_04 svc:/network/rpc/metamh:default
online Nov_04 svc:/network/rpc/rstat:default
online Nov_04 svc:/network/nfs/client:default
online Nov_04 svc:/network/rpc/rusers:default

I do svcadm disable nfs abut it says:

-bash-3.00# svcadm disable nfs
svcadm: Pattern 'nfs' doesn't match any instances

How can I determine the services though it stated in ps that the nfs,etc. is running?

Last edited by packets; 11-09-2007 at 12:53 AM.
 
Old 11-09-2007, 01:36 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Not used solaris personally, however:

You should be able to stop the running processes by:
Code:
/etc/init.d/nfs stop
To stop nfs from starting at boot time, check the startup folders (example: /etc/rc2.d) for a link file:

S40nfs -> /etc/init.d/nfs

Remove the link file (note the directory and filename so that you can recreate them later!)

Do not remove the file from /etc/init.d
 
Old 11-09-2007, 03:33 AM   #3
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
I think that the correct way is through the svcadm command. And not juggling with files. There is also the svcs command, i think. Check them up?
 
Old 11-09-2007, 04:51 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You can stop nfs with "svcadm disable nfs/client".

You can stop all services but ssh with the "netservices limited" command (see http://www.linuxquestions.org/questi...97#post2943297 for a similar thread).
 
Old 03-15-2009, 12:00 AM   #5
Paris Heng
Member
 
Registered: Jul 2007
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 8.04, Solaris 10
Posts: 198

Rep: Reputation: 30
Hi, it is sufficient to close like this?

Code:
/etc/init.d/rpcXXXX stop
 
Old 03-15-2009, 03:44 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
There is no such rc script under Solaris 10 and newer.
 
Old 03-15-2009, 05:08 AM   #7
Paris Heng
Member
 
Registered: Jul 2007
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 8.04, Solaris 10
Posts: 198

Rep: Reputation: 30
So , the only way is through svcadm ya
 
  


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
How to stop services from loading? hdavy2002 Linux - Newbie 2 03-09-2007 09:05 AM
How do I stop services from restarting after I stop them? M$ISBS Linux - Software 3 10-27-2005 08:13 PM
stop and start services hoover93 SUSE / openSUSE 5 12-29-2004 02:48 PM
stop services in SuSE 9.0 randomx Linux - General 2 12-29-2003 01:12 PM
stop services matwau Linux - Networking 2 10-01-2003 05:40 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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