On Fri, Aug 1, 2008 at 1:36 PM, darren <darren.e at sky.com> wrote:

> I was attempting to get to a mimimal service offering.
>
> For example, Apache is running - I dont need it! IPV6 is running - I dont
> need it! Remote logins are running - I dont want them! ..and so on.
>
> I wasn't "random" in my view. What I should have done though, is RTFM prior
> to disabling what I perceived to be unneccessary services.
>
> I'll try the above suggestions - THANKS -to you all.
>
> Before disabling a service, check what depends on it.

To list the dependencies of a service, use

svcs -D service

Example:
$ svcs -D svc:/network/ssh:default
STATE          STIME    FMRI
online         11:44:17 svc:/milestone/multi-user-server:default


And then check whether this service lists it as Required or Optional:
$ svcs -l multi-user-server:default
fmri         svc:/milestone/multi-user-server:default
name         multi-user plus exports milestone
enabled      true
state        online
next_state   none
state_time   Fri Aug 01 11:44:17 2008
logfile      /var/svc/log/milestone-multi-user-server:default.log
restarter    svc:/system/svc/restarter:default
dependency   require_all/none svc:/milestone/multi-user (online)
dependency   optional_all/none svc:/application/management/snmpdx (disabled)
dependency   optional_all/none svc:/network/wins (disabled)
dependency   optional_all/none svc:/network/ssh (online)
dependency   optional_all/none svc:/network/winbind (disabled)
dependency   optional_all/none svc:/network/dhcp-server (disabled)
dependency   optional_all/none svc:/network/nfs/server (disabled)
dependency   optional_all/none svc:/network/rarp (disabled)
dependency   optional_all/none svc:/network/rpc/smserver (online)
dependency   optional_all/none svc:/network/rpc/bootparams (disabled)
dependency   optional_all/none svc:/network/samba (disabled)

If it is not required, it can be disabled.  In the above case, SSH is an
optional requirement for multi-user milestone.

In this case it means:
If ssh is disabled, the milestone will ignore it.
If ssh is enabled but FAILS, the milestone will be seen as failed.


There is one other pitfall:  Even if a service has got no dependencies, you
may still depend on it without realizing it.  For this reason it is a good
idea to experiment (on a test system) with disabling services, and check
whether everything is working as you expect, but do keep notes of what you
change.

Have fun,
  _J

-- 
Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/opensolaris-help/attachments/20080801/db5a9a65/attachment.html>

Reply via email to