<?xml version="1.0"?>

<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--***********************************************************
 * 
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 * 
 ***********************************************************-->

<service_bundle type="manifest" name="ooo_bundled_extensions">

<service
   name="application/ooo_bundled_extensions"
   type="service"
   version="1">

  <create_default_instance enabled="true" />
  <single_instance/>

  <dependency name="service_available"
	      grouping="require_all"
	      restart_on="none"
	      type="service">
    <service_fmri value="svc:/system/filesystem/local:default" />
  </dependency>

  <exec_method
     type="method" name="start"
     exec="/lib/svc/method/svc-ooo_bundled_extensions start"
     timeout_seconds="160">
    <method_context>
      <method_credential user="root" group="root" />
    </method_context>
  </exec_method>
  
  
  <exec_method
     type="method" name="stop"
     exec="/lib/svc/method/svc-ooo_bundled_extensions stop"
     timeout_seconds="160" >
    <method_context>
      <method_credential user="root" group="root" />
    </method_context>
  </exec_method>
  
  <property_group name="startd" type="framework">
    <propval name="duration" type="astring"
	     value="transient" /> 
    <propval name="ignore_error"
	     type="astring" value="core,signal" />
    
  </property_group>  

  <stability value="Unstable" />
  
  <template>
    <common_name>
      <loctext xml:lang="C">
          Installation of Apache OpenOffice's bundled extensions.
      </loctext>
    </common_name>
  </template>
</service>

</service_bundle>
