svcs command on solaris 8 and 9

Hi,

Can anybody tell me what is the command to start and stop services on solaris 8. I found command svcs on solaris 10 but not on 8 or 9.

Please guilde me.

Thanks,
Rucha

look in /etc/rcX.d for the startup script. X = runlevel in which the service should start.

/etc/init.d/<service_name> stop|start

/etc/init.d/volmgt stop | start for example...

scvs and svcsadm are new to Solaris 10

Hi,

svcs and svcadm are the new commands in solaris 10 - SMF ( service management facility), which is used to manage the status of the services.

In Solaris 8 and 9, we need to get into /etc/init.d directory where you can find the scripts, so by passing argument start/stop we can control the services. ex:

/etc/init.d/nfs.server stop
/etc/init.d/nfs.server start

Hello,

Until solaris 10, almost everything is launched by scripts in /etc/rc? directory's.
These scripts are normally links (symbolic or hard ) to scripts in /etc/init.d.

Only scripts with names starteng with a capital "S" are started in numeric order.
The scripts started with a capital "K" are stop scripts.

Note that there are still a few of these "legacy" start/stop scripts in Solaris 10.
(I don't think they finished the work before they had to ship the product!)

i don't think so also.... they did a good job and leave the "legacy" files for backwards compatibility!