[OmniOS-discuss] How some services boot
Eric Sproul
eric.sproul at circonus.com
Thu Apr 6 19:09:58 UTC 2017
On Thu, Apr 6, 2017 at 2:16 PM, Software Information
<softwareinforjam at gmail.com> wrote:
> Hi All
> Just trying to understand how some services work under OmniOS. Please help
> me to understand this. I have build omnios-r151020-4151d05 and I am running
> a Git Server in a zone. I used packages to install Git with a pkg install.
> When I run svcs, I don't see the git service at all but I can use a client
> to connect to it and the port is open. I am trying to get better at service
> management. Where can I find the script that is starting this service.
There are a couple of strategies. The brute-force method is to run
`svcs` and look for services that recently started (by default they
are sorted in time order, most recent at the end). It may be that the
service has a name that you don't expect.
IPS packages can deliver services that are automatically enabled, and
you can discover that by examining the package contents. First, I'd
look for it delivering an SMF manifest, which is an XML file that is
typically installed somewhere under /var/svc/manifest:
pkg contents <packagename> | grep svc/manifest
If that turns up something, have a look in that file for the name of
the service, which will be an attribute on the <service> node, e.g.
<service name='someservice' ...>
Assuming you find that, then `svcs someservice` should return something.
HTH,
Eric
More information about the OmniOS-discuss
mailing list