+ Reply to Thread
Results 1 to 3 of 3

Disabling a service on Solaris 10.

  1. Disabling a service on Solaris 10.

    Hi,

    I am enabling tftp in inetd.conf by uncommenting the line followed by
    inetconv to register the service.

    Now if I want to unregister the service and remove it, how do I go about it?


    What I am doing currently is use 'svcadm disable [service]' followed by
    'svccfg delete [service]'. Another attempt was to do 'svccfg -f [service]'.
    After this, I can see that the service is getting deleted by the entries in
    inetd.conf are still present.

    How do I confirm that the service is indeed deleted?

    All this is on Solaris 10.

    Any info is appreciated.

    Thanks,
    Kopi



  2. Re: Disabling a service on Solaris 10.

    On 2007-06-13, Krishna Chaitanya wrote:
    > Hi,
    >
    > I am enabling tftp in inetd.conf by uncommenting the line followed by
    > inetconv to register the service.
    >
    > Now if I want to unregister the service and remove it, how do I go about it?
    >
    >
    > What I am doing currently is use 'svcadm disable [service]' followed by
    > 'svccfg delete [service]'. Another attempt was to do 'svccfg -f [service]'.
    > After this, I can see that the service is getting deleted by the entries in
    > inetd.conf are still present.


    huge{~}: more /etc/inetd.conf
    #
    # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    #
    #ident "@(#)inetd.conf 1.56 04/10/21 SMI"
    #
    # Legacy configuration file for inetd(1M). See inetd.conf(4).
    #
    # This file is no longer directly used to configure inetd.
    # The Solaris services which were formerly configured using this file
    # are now configured in the Service Management Facility (see smf(5))
    # using inetadm(1M).
    #

    > How do I confirm that the service is indeed deleted?


    svcs | grep ftp




    --
    "If only I had known, I should have become a watchmaker." ~ Albert Einstein
    [email me at huge {at} huge (dot) org uk]

  3. Re: Disabling a service on Solaris 10.

    "Krishna Chaitanya" writes:

    >I am enabling tftp in inetd.conf by uncommenting the line followed by
    >inetconv to register the service.


    >Now if I want to unregister the service and remove it, how do I go about it?


    Disable:
    svcadm disable

    Remove
    disable and
    svccfg delete


    >What I am doing currently is use 'svcadm disable [service]' followed by
    >'svccfg delete [service]'. Another attempt was to do 'svccfg -f [service]'.
    >After this, I can see that the service is getting deleted by the entries in
    >inetd.conf are still present.


    The presence in inetd.conf is an artefact of how you added the service.

    Casper
    --
    Expressed in this posting are my opinions. They are in no way related
    to opinions held by my employer, Sun Microsystems.
    Statements on Sun products included here are not gospel and may
    be fiction rather than truth.

+ Reply to Thread