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/global.xml
          +++ new/usr/src/cmd/svc/milestone/global.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 (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
   5    5   Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
        6 + Copyright 2019 Joyent, Inc.
   6    7  
   7    8   CDDL HEADER START
   8    9  
   9   10   The contents of this file are subject to the terms of the
  10   11   Common Development and Distribution License (the "License").
  11   12   You may not use this file except in compliance with the License.
  12   13  
  13   14   You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  14   15   or http://www.opensolaris.org/os/licensing.
  15   16   See the License for the specific language governing permissions
↓ open down ↓ 79 lines elided ↑ open up ↑
  95   96                                          <loctext xml:lang='C'>
  96   97  The restarter responsible for managing this service instance.  If the property is unset, the default restarter, svc.startd, is assumed.
  97   98                                          </loctext>
  98   99                                  </description>
  99  100                                  <cardinality min='1' max='1'/>
 100  101                          </prop_pattern>
 101  102                          <prop_pattern name='single_instance' type='boolean'
 102  103                              required='false'>
 103  104                                  <description>
 104  105                                          <loctext xml:lang='C'>
 105      -Only one instance of this service may be run.  This property is currently unenforced, but will be at some point in the future.
      106 +Only one instance of this service may be run.  This behavior is unimplemented, and obsolete.
 106  107                                          </loctext>
 107  108                                  </description>
 108  109                                  <cardinality min='1' max='1'/>
 109  110                          </prop_pattern>
 110  111                  </pg_pattern>
 111  112  
 112  113                  <pg_pattern type='dependency' target='all' required='false'>
 113  114                          <description>
 114  115                                  <loctext xml:lang='C'>
 115  116  A dependency declares a required condition for a service instance to start or stay running.  It is defined by the service author and consumed by SMF.
↓ open down ↓ 828 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX