solaris 11 exercise smf (1) administering services

In this exercise you will work with dependencies between
services. You will check the status of cron, and check
its dependencies. Then you will disable a service that
cron depends on and see how that reflects on cron.

user1@solaris11-1:~$ su -
Password:
Oracle Corporation SunOS 5.11 11.0 November 2011
You have new mail.

root@solaris11-1:~# pgrep -fl cron
466 /usr/sbin/cron

root@solaris11-1:~# svcs cron
STATE STIME FMRI
online 11:30:29 svc:/system/cron:default

root@solaris11-1:~# svcs -p cron
STATE STIME FMRI
online 11:30:29 svc:/system/cron:default
11:30:29 466 cron
root@solaris11-1:~#

root@solaris11-1:~# svcs -d cron
STATE STIME FMRI
online 11:30:25 svc:/milestone/name-services:default
online 11:30:29 svc:/system/filesystem/local:default
root@solaris11-1:~#

root@solaris11-1:~# svcs -D cron
STATE STIME FMRI
online 11:30:42 svc:/milestone/multi-user:default
root@solaris11-1:~#

root@solaris11-1:~# svcadm disable name-services
root@solaris11-1:~# svcs -d cron
STATE STIME FMRI
disabled 20:22:45 svc:/milestone/name-services:default
online 11:30:29 svc:/system/filesystem/local:default

root@solaris11-1:~# svcs -p cron
STATE STIME FMRI
online 11:30:29 svc:/system/cron:default
11:30:29 466 cron

root@solaris11-1:~# svcadm refresh cron

root@solaris11-1:~# svcs -p cron
STATE STIME FMRI
online 20:23:13 svc:/system/cron:default
11:30:29 466 cron

root@solaris11-1:~# svcadm disable cron
root@solaris11-1:~# svcadm enable cron

root@solaris11-1:~# svcs -p cron
STATE STIME FMRI
offline 20:23:40 svc:/system/cron:default
root@solaris11-1:~#

This entry was posted in solaris. Bookmark the permalink.

Comments are closed.