svcs command on solaris 8 and 9


 
Thread Tools Search this Thread
Operating Systems Solaris svcs command on solaris 8 and 9
# 1  
Old 11-26-2007
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
# 2  
Old 11-26-2007
look in /etc/rcX.d for the startup script. X = runlevel in which the service should start.
# 3  
Old 11-26-2007
/etc/init.d/<service_name> stop|start

/etc/init.d/volmgt stop | start for example...
# 4  
Old 11-27-2007
scvs and svcsadm are new to Solaris 10
# 5  
Old 12-17-2007
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
francisl
# 6  
Old 12-17-2007
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.
# 7  
Old 12-17-2007
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!)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Svcs: failed to iterate over instances: server has insufficient resources

Hi community, one of my zone is having issue and while i issue svs -a, i am getting below error "svcs: failed to iterate over instances: server has insufficient resources" none on the services are working including ssh/telnet. please help me to fix this issue thanks & Regards,... (1 Reply)
Discussion started by: bentech4u
1 Replies

2. Shell Programming and Scripting

Check & use output of svcs command

Hello Dear Friends, I need to check output of svcs command and so the status of some instances. -bash-3.00$ svcs -a | grep rfe online Aug_04 svc:/application/rfe/rfe_master_3:default online Aug_04 svc:/application/rfe/rfe_master_4:default as you can see there are two... (1 Reply)
Discussion started by: EAGL€
1 Replies

3. Solaris

Solaris 10 svcs failures

I have a solaris 10 machine that was working fine until the system crashed after a power failure. Now, after the system boots up, several services go into maintenance mode. offline 8:54:59 svc:/milestone/multi-user-server:default offline 8:54:59... (15 Replies)
Discussion started by: krishani3831
15 Replies

4. Solaris

PostgreSQL - Adding to SVCS list.

I'm having some troubles setting an instance of postgreSQL to automatically start upon system boot. I have two servers running this app, one is automatically starting the service, the other is not. I'm attempting to use the "svcadmin" command, however, apparently when I run a "svcs -a" search, the... (6 Replies)
Discussion started by: Nvizn
6 Replies

5. Solaris

svcs command shows the state as disabled

Hi I need to export a directory named /sybase from my solaris machine via NFS. The svcs command shows the state as disabled. Please let me know how to export the directory. Once the directory is exported from the solaris machine it has to be mounted locally in an aix machine. Can some one... (2 Replies)
Discussion started by: newtoaixos
2 Replies

6. Solaris

Error: svcs: Pattern 'pooladm.conf' doesn't match any instances

Hi, I got the following errors during zfs resource pool configuration. Please help. Thanks. # svcs *pool* svcs: Pattern 'pooladm.conf' doesn't match any instances STATE STIME FMRI # svcadm enable system/pools:default # svcs *pool* svcs: Pattern 'pooladm.conf' doesn't match any... (4 Replies)
Discussion started by: aixlover
4 Replies

7. Solaris

svcs showing online* status

Hi Experts I am getting following status # svcs wbem STATE STIME FMRI online* 18:19:29 svc:/application/management/wbem:default /var/svc/log/application-management-wbem:default.log is being flooded with following message (5 Replies)
Discussion started by: mtomar
5 Replies

8. Solaris

Solaris 10 svcs failures

upon rebooting the solaris 10 system, all the services went offilne or uninitialised. If I break the SVM mirror and reboot the system with the raw device, all services are up. Once I recreate a fresh mirror(metadevices) and reboot, it goes offline again. Needed to do svcadm clear <service> to bring... (16 Replies)
Discussion started by: incredible
16 Replies

9. UNIX for Advanced & Expert Users

Need svcs equivalent command

Hi, I am new to HP-UX. Can someboby help me with the svcs equivalent command in HP-UX ??? svcs is command that we use in Solaris for service status. I need to get the status of services in HP-UX. Thanks in advance. (2 Replies)
Discussion started by: EmbedUX
2 Replies

10. Solaris

Boot problem with SMF svcs-Solaris 10 for x86

Hi All, I am newbie in solaris, please guide me. A week before i installed solaris10 on my x86 system, it was working fine i always used "init 5" to shutdown my system as per my collegue advice. But yesterday when i started my system it gave me following message ... (6 Replies)
Discussion started by: imrankhan.in
6 Replies
Login or Register to Ask a Question