{"id":569,"date":"2009-12-15T08:00:41","date_gmt":"2009-12-15T13:00:41","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=569"},"modified":"2019-09-04T19:57:40","modified_gmt":"2019-09-05T00:57:40","slug":"managing-the-services-in-solaris","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=569","title":{"rendered":"Managing the services in Solaris."},"content":{"rendered":"<p>The svcs command will report the status of servics in Solaris.<br \/>\nThe svcadm command is used for service management such as starting, stopping and restoring services.<\/p>\n<p>To display all services with their state information, use the svcs command with the -a option.<br \/>\nroot@server1 # svcs -a<br \/>\nSTATE          STIME    FMRI<br \/>\nlegacy_run     14:33:14 lrc:\/etc\/rcS_d\/S29wrsmcfg<br \/>\nlegacy_run     14:33:21 lrc:\/etc\/rc2_d\/S10lu<br \/>\nlegacy_run     14:33:23 lrc:\/etc\/rc3_d\/S99EIS-DVDtag<br \/>\ndisabled       14:33:02 svc:\/network\/iscsi_initiator:default<br \/>\ndisabled       14:33:02 svc:\/system\/metainit:default<br \/>\nonline         14:33:23 svc:\/application\/cde-printinfo:default<br \/>\nonline         14:33:23 svc:\/application\/graphical-login\/cde-login:default<br \/>\nonline         14:33:31 svc:\/system\/webconsole:console<br \/>\noffline        14:33:03 svc:\/application\/print\/ipp-listener:default<br \/>\n(Note: This list has been truncated)<\/p>\n<div style=\"float: right;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 180;\ngoogle_ad_height = 150;\ngoogle_ad_format = \"180x150_as\";\ngoogle_ad_type = \"text_image\";\ngoogle_ad_channel =\"\";\ngoogle_color_border = \"cccccc\";\ngoogle_color_link = \"cc0000\";\ngoogle_color_bg = \"ffffff\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"008000\";\n\/\/--><\/script>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/div><\/div><p>To display information about the dns service specify the service name.<br \/>\n# svcs -a | grep dns<br \/>\ndisabled       12:40:54 svc:\/network\/dns\/client:default<br \/>\ndisabled       12:40:55 svc:\/network\/dns\/server:default<\/p>\n<p>or<\/p>\n<p># svcs dns\/client<br \/>\nSTATE          STIME    FMRI<br \/>\nonline         14:33:13 svc:\/network\/dns\/client:default <\/p>\n<p>To list the dependencies of the inetd service, use the svcs command, specifying the -d option:<br \/>\n# svcs -d inetd<br \/>\nSTATE       STIME     FMRI<br \/>\ndisabled    Apr_18    svc:\/network\/inetd-upgrade:default<br \/>\nonline      Apr_18    svc:\/milestone\/name-services:default<br \/>\nonline      Apr_18    svc:\/network\/loopback:default<br \/>\nonline      Apr_18    svc:\/milestone\/network:default<br \/>\nonline      Apr_18    svc:\/system\/filesystem\/local:default<br \/>\nonline      Apr_18    svc:\/network\/rpc\/bind:default<br \/>\nonline      Apr_18    svc:\/milestone\/sysconfig:default<\/p>\n<p>To discover the services which depend upon inetd, use the svcs command with the -D option, specifying inetd by name:<br \/>\n# svcs -D inetd<br \/>\nSTATE       STIME     FMRI<br \/>\nonline      Apr_18    svc:\/milestone\/multi-user:default<br \/>\nIn this example you can see that multi-user depends upon inetd. <\/p>\n<p>To discover the services which depend upon multi-user, use the svcs command with the -D option, specifying multiuser by <\/p>\n<p>name:<br \/>\n# svcs -D multi-user<br \/>\nSTATE       STIME     FMRI<br \/>\ndisabled    Apr_18    svc:\/network\/dhcp-server:default<br \/>\nonline      Apr_18    svc:\/milestone\/multi-user-server:default<br \/>\nNotice that there are two services which depend upon multi-user, dhcp-server and multi-user-server.<\/p>\n<p>To discover the services which depend upon dhcp-server, use the svcs command with the -D option, specifying dhcp-server by <\/p>\n<p>name. Follow through the whole dependency tree in the same way:<br \/>\n# svcs -D dhcp-server<br \/>\nSTATE       STIME     FMRI<br \/>\nonline      Apr_18    svc:\/milestone\/multi-user-server:default<\/p>\n<p>Find the services which depend upon multi-user-server:<br \/>\n# svcs -D multi-user-server<br \/>\nSTATE       STIME     FMRI<br \/>\nonline      Apr_18    svc:\/system\/zones:default<br \/>\nFind services which depend upon zones: <\/p>\n<p># svcs -D zones<br \/>\nSTATE       STIME     FMRI<br \/>\nIn this case, there are no services which depend on zones, so this is the end of the dependency tree.<\/p>\n<p>To enable the dns client service.<br \/>\n# svcadm enable \/network\/dns\/client<\/p>\n<p>For more information about the service management here is a link to Sun, <\/p>\n<p>http:\/\/www.sun.com\/software\/solaris\/howtoguides\/servicemgmthowto.jsp#1.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The svcs command will report the status of servics in Solaris. The svcadm command is used for service management such as starting, stopping and restoring services. To display all services with their state information, use the svcs command with the&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=569\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[64,35],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/569"}],"collection":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=569"}],"version-history":[{"count":3,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/569\/revisions"}],"predecessor-version":[{"id":612,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/569\/revisions\/612"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=569"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}