components/openvswitch/files/vswitch.xml
changeset 5090 5f131162e136
child 5730 cca4aa297e68
equal deleted inserted replaced
5089:8d5767cc3ddc 5090:5f131162e136
       
     1 <?xml version="1.0"?>
       
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
       
     3 <!--
       
     4 CDDL HEADER START
       
     5 
       
     6 The contents of this file are subject to the terms of the
       
     7 Common Development and Distribution License (the "License").
       
     8 You may not use this file except in compliance with the License.
       
     9 
       
    10 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    11 or http://www.opensolaris.org/os/licensing.
       
    12 See the License for the specific language governing permissions
       
    13 and limitations under the License.
       
    14 
       
    15 When distributing Covered Code, include this CDDL HEADER in each
       
    16 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    17 If applicable, add the following below this CDDL HEADER, with the
       
    18 fields enclosed by brackets "[]" replaced with your own identifying
       
    19 information: Portions Copyright [yyyy] [name of copyright owner]
       
    20 
       
    21 CDDL HEADER END
       
    22 
       
    23  Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
       
    24 
       
    25  NOTE:  This service manifest is not editable; its contents will
       
    26  be overwritten by package or patch operations, including
       
    27  operating system upgrade.  Make customizations in a different
       
    28  file.
       
    29 -->
       
    30 
       
    31 <service_bundle type="manifest" name="vswitch">
       
    32 
       
    33     <service name="application/openvswitch/vswitch-server" type="service" version="1">
       
    34         <dependency
       
    35             name='multiuser'
       
    36             grouping='require_all'
       
    37             restart_on='error'
       
    38             type='service'>
       
    39             <service_fmri value='svc:/milestone/multi-user:default'/>
       
    40         </dependency>
       
    41 
       
    42         <dependency
       
    43             name='ovsdb-server'
       
    44             grouping='require_all'
       
    45             restart_on='none'
       
    46             type='service'>
       
    47             <service_fmri
       
    48                 value='svc:/application/openvswitch/ovsdb-server:default'/>
       
    49         </dependency>
       
    50 
       
    51         <instance name='default' enabled='true'>
       
    52             <exec_method
       
    53                 type="method"
       
    54                 name="start"
       
    55                 exec="/lib/svc/method/ovs-svc %m"
       
    56                 timeout_seconds="60">
       
    57 
       
    58                 <method_context>
       
    59                     <method_credential
       
    60                         user='_ovs'
       
    61                         group='_ovs'
       
    62                         privileges='basic,net_rawaccess,proc_lock_memory'/>
       
    63                 </method_context>
       
    64             </exec_method>
       
    65 
       
    66             <exec_method
       
    67                 type="method" 
       
    68                 name="stop"
       
    69                 timeout_seconds="60"
       
    70                 exec="/lib/svc/method/ovs-svc %m">
       
    71             </exec_method>
       
    72 
       
    73             <!-- to start/stop/refresh the service -->
       
    74             <property_group name='general' type='framework'>
       
    75                 <propval
       
    76                     name='action_authorization'
       
    77                     type='astring'
       
    78                     value='solaris.smf.manage.ovs'/>
       
    79 
       
    80                 <propval
       
    81                     name='value_authorization'
       
    82                     type='astring'
       
    83                     value='solaris.smf.value.ovs'/>
       
    84             </property_group>
       
    85 
       
    86             <template>
       
    87                 <common_name>
       
    88                     <loctext xml:lang="C">
       
    89                         Open Virtual Switch Daemon
       
    90                     </loctext>
       
    91                 </common_name>
       
    92                 <description>
       
    93                     <loctext xml:lang="C">
       
    94                         Daemon that manages Open Virtual Switch switches
       
    95                     </loctext>
       
    96                 </description>
       
    97                 <documentation>
       
    98 		    <external_logfile path='/var/log/ovs/ovs-vswitchd.log' />
       
    99                 </documentation>
       
   100             </template>
       
   101         </instance>
       
   102     </service>
       
   103 </service_bundle>
       
   104