[OpenIndiana-discuss] inetadm and svcadm
Hugh McIntyre
lists at mcintyreweb.com
Sun Jan 16 04:38:23 UTC 2011
Matt Wilby wrote:
> Hi,
>
> Do a 'ps -ef | grep nagios'. The third column gives you parent pid. What is it?
You can find the PID of nagios and then "ptree <pid>". This will give
you the parent, plus any grandparents all the way up. However, for
something like ssh started by SMF, the parent pid is 1 (init) so this
does not tell you much.
More usefully, if you suspect it's started from inetd, type "inetadm" on
it's own which will list all of the inetd-managed services. You can
then use "inetadm" to enable/disable some of these.
Finally, if this also shows nothing, look in /etc/rc*.d/S*, not
/etc/init.d, since the rc*.d directories are what actually gets run on
startup for legacy services outside smf and inetadm.
Hugh.
More information about the OpenIndiana-discuss
mailing list