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? |
Not used solaris personally, however:
You should be able to stop the running processes by: Code:
/etc/init.d/nfs stop 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 |
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?
|
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). |
Hi, it is sufficient to close like this?
Code:
/etc/init.d/rpcXXXX stop |
There is no such rc script under Solaris 10 and newer.
|
So , the only way is through svcadm ya
|
All times are GMT -5. The time now is 01:45 AM. |