{"id":13,"date":"2012-03-06T12:55:59","date_gmt":"2012-03-06T08:55:59","guid":{"rendered":"http:\/\/pavlenko.net\/antony\/?p=13"},"modified":"2020-05-07T00:53:59","modified_gmt":"2020-05-06T20:53:59","slug":"service-to-pid-and-vice-versa","status":"publish","type":"post","link":"http:\/\/pavlenko.net\/antony\/2012\/03\/06\/service-to-pid-and-vice-versa\/","title":{"rendered":"Service to pid and vice versa"},"content":{"rendered":"<p>In Solaris 10 widely used concept of &#8220;service&#8221;.<br \/>\nEach service can start some daemons, but information, what service start this or that daemon sometimes isn&#8217;t obvious.<br \/>\nIn Solaris 10 each process has new field :ctid &#8211; contract ID of the process.<br \/>\nso, ps -ef -o pid,ctid,comm will show you contract ID for all processes.<br \/>\nAnd<br \/>\nsvcs -a -o FMRI,CTID &#8211; about Contract ID for each service.<br \/>\nNow you can find all processes, for ftp service, for example :<\/p>\n<pre>ps -ef -o pid,ctid,comm |grep `svcprop -p restarter\/contract svc:\/network\/ftp:default`<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In Solaris 10 widely used concept of &#8220;service&#8221;. Each service can start some daemons, but information, what service start this or that daemon sometimes isn&#8217;t obvious. In Solaris 10 each process has new field :ctid &#8211; contract ID of the process. so, ps -ef -o pid,ctid,comm will show you contract ID for all processes. And [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/posts\/13"}],"collection":[{"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":2,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":15,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/posts\/13\/revisions\/15"}],"wp:attachment":[{"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}