Print this page
12071 clarify implementation of single_instance in SMF services
Reviewed by: Robert Mustacchi <rm@fingolfin.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/milestone/network-physical.xml
          +++ new/usr/src/cmd/svc/milestone/network-physical.xml
   1    1  <?xml version="1.0"?>
   2    2  <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
   3    3  <!--
   4    4   Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
   5    5   Use is subject to license terms.
   6    6  
        7 + Copyright 2019 Joyent, Inc.
        8 +
   7    9   CDDL HEADER START
   8   10  
   9   11   The contents of this file are subject to the terms of the
  10   12   Common Development and Distribution License (the "License").
  11   13   You may not use this file except in compliance with the License.
  12   14  
  13   15   You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  14   16   or http://www.opensolaris.org/os/licensing.
  15   17   See the License for the specific language governing permissions
  16   18   and limitations under the License.
↓ open down ↓ 26 lines elided ↑ open up ↑
  43   45                  restart_on='none'
  44   46                  type='service'>
  45   47                  <service_fmri value='svc:/network/loopback' />
  46   48          </dependency>
  47   49  
  48   50          <instance name='default' enabled='true'>
  49   51  
  50   52          <!--
  51   53                  physical:default and physical:nwam are mutually exclusive.
  52   54                  Use a one-way dependency for now since two-way exclude_all
  53      -                does not work; enforcement of single_instance in the future
  54      -                will fix this.
       55 +                does not work.
  55   56          -->
  56   57          <dependency
  57   58                  name='physical_nwam'
  58   59                  grouping='exclude_all'
  59   60                  restart_on='none'
  60   61                  type='service'>
  61   62                  <service_fmri value='svc:/network/physical:nwam' />
  62   63          </dependency>
  63   64  
  64   65          <exec_method
↓ open down ↓ 110 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX