Service Management Facility

UNIX operating systems have traditionally included a set of services. Services can be described as a software programs not associated with any interactive user login that listen for and respond to request to perform certain tasks, such as webmin service, delivering email, responding to ssh request or permitting command execution.

These services are usually individual applications that executed as a single process that started at boot time and executed continuously while a system was up and running, servicing any request that were received.

Here, I'll show you some of services and how to enable it.

List all services known to system and current status

root@ultra60 # svcs -a
disabled 9:52:26 svc:/application/x11/xvnc-inetd:default
disabled 9:52:26 svc:/network/swat:default
online 9:51:32 svc:/system/svc/restarter:default
online 9:51:34 svc:/network/loopback:default
online 9:51:37 svc:/network/pfil:default
online 9:51:37 svc:/network/tnctl:default
online 9:51:39 svc:/system/installupdates:default
online 9:51:40 svc:/milestone/name-services:default
online 9:51:43 svc:/network/physical:default
You'll see something like that (it's a long list, sorry... :D )

Enable the webmin service (long FMRI)
root@ultra60 # svcadm svc:/application/management/webmin:default

Disable the webmin service (short name)
root@ultra60 # svcadm disable webmin

List details of the ssh(d) service
root@ultra60 # svcs -l ssh

fmri svc:/network/ssh:default
name SSH server
enabled true
state online
next_state none
state_time Thu Jun 18 09:52:28 2009
logfile /var/svc/log/network-ssh:default.log
restarter svc:/system/svc/restarter:default
contract_id 61
dependency require_all/none svc:/system/filesystem/local (online)
dependency optional_all/none svc:/system/filesystem/autofs (online)
dependency require_all/none svc:/network/loopback (online)
dependency require_all/none svc:/network/physical (online)
dependency require_all/none svc:/system/cryptosvc (online)
dependency require_all/none svc:/system/utmp (online)
dependency require_all/restart file://localhost/etc/ssh/sshd_config (online)


Restart the ssh(d) service
root@ultra60 # svcadm restart ssh

Verify that the AutoFS service is running
root@ultra60 # svcs system/filesystem/autofs

STATE STIME FMRI
online 9:52:28 svc:/system/filesystem/autofs:default


Verify that the multiuser server milestone has been reached
root@ultra60 # svcs multi-user-server

STATE STIME FMRI
online 9:56:22 svc:/milestone/multi-user-server:default


Disable the telnetd service (Use -e for enable)
root@ultra60 # inetadm -d telnet

No comments:

Post a Comment