69N/A<?xml version="1.0"?>
69N/A<!--
69N/ACDDL HEADER START
69N/A
69N/AThe contents of this file are subject to the terms of the
69N/ACommon Development and Distribution License (the "License").
69N/AYou may not use this file except in compliance with the License.
69N/A
69N/AYou can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
69N/Aor http://www.opensolaris.org/os/licensing.
69N/ASee the License for the specific language governing permissions
69N/Aand limitations under the License.
69N/A
69N/AWhen distributing Covered Code, include this CDDL HEADER in each
69N/Afile and include the License file at usr/src/OPENSOLARIS.LICENSE.
69N/AIf applicable, add the following below this CDDL HEADER, with the
69N/Afields enclosed by brackets "[]" replaced with your own identifying
69N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
69N/A
69N/ACDDL HEADER END
69N/A-->
69N/A<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
69N/A<!--
69N/A Copyright 2007 Sun Microsystems, Inc. All rights reserved.
69N/A Use is subject to license terms.
69N/A-->
69N/A
69N/A<service_bundle type="manifest" name="OSOLopengrok:opengrok">
69N/A <service name="application/opengrok" type="service" version="1">
69N/A
69N/A <single_instance />
69N/A <dependency
228N/A name="filesystem-local"
69N/A grouping="require_all"
69N/A restart_on="none"
69N/A type="service">
69N/A <service_fmri value="svc:/system/filesystem/local" />
69N/A </dependency>
69N/A
69N/A <dependency
69N/A name="network-service"
69N/A grouping="require_all"
69N/A restart_on="none"
69N/A type="service">
69N/A <service_fmri value="svc:/network/service" />
69N/A </dependency>
69N/A
69N/A <dependency
69N/A name="name-services"
69N/A grouping="require_all"
69N/A restart_on="refresh"
69N/A type="service">
69N/A <service_fmri value="svc:/milestone/name-services" />
69N/A </dependency>
69N/A
69N/A <dependency
69N/A name="identity"
69N/A grouping="optional_all"
69N/A restart_on="refresh"
69N/A type="service">
69N/A <service_fmri value="svc:/system/identity:domain" />
69N/A </dependency>
69N/A
69N/A <property_group
69N/A name="startd"
69N/A type="framework">
69N/A <propval name="duration" type="astring" value="child" />
69N/A </property_group>
69N/A
228N/A <property_group name="general" type="framework">
228N/A <propval name="action_authorization" type="astring" value="solaris.smf.manage.opengrok" />
228N/A <propval name="value_authorization" type="astring" value="solaris.smf.value.opengrok" />
228N/A </property_group>
228N/A
228N/A <property_group name="opengrok" type="application">
228N/A <propval name="value_authorization" type="astring"
228N/A value="solaris.smf.value.opengrok" />
228N/A <propval name="action_authorization" type="astring"
228N/A value="solaris.smf.manage.opengrok" />
228N/A </property_group>
228N/A
69N/A <instance name="opengrok" enabled="false">
69N/A <exec_method
69N/A type="method"
69N/A name="start"
69N/A exec="/opengrok/smf/indexer.sh"
69N/A timeout_seconds="0">
69N/A <method_context>
72N/A <!-- Specify the user and the group the indexing service
69N/A should run as -->
69N/A <method_credential user="opengrok" group="opengrok"/>
69N/A <method_environment>
69N/A <!-- The root direction of this opengrok
69N/A installation -->
69N/A <envvar name="ROOT" value="/opengrok"/>
69N/A
69N/A <!-- How often should the source be updated (in
69N/A seconds) -->
69N/A <envvar name="SLEEPTIME" value="1800"/>
69N/A
69N/A <!-- The Java version to use -->
69N/A <envvar name="JAVA_HOME" value="/usr/jdk/latest"/>
69N/A <!-- The path needed -->
69N/A <envvar name="PATH" value="/usr/bin"/>
69N/A
115N/A <!-- The name of the various SCM tools to use -->
115N/A <envvar name="CVS" value="/usr/bin/cvs" />
115N/A <envvar name="SUBVERSION" value="/usr/bin/svn"/>
115N/A <envvar name="MERCURIAL" value="/usr/bin/hg"/>
69N/A
69N/A <!-- The name of the web servers that should be
69N/A notified with the information of the active
69N/A configuration to use. Specify them with
69N/A hostname:port and separate multiple hosts by space.
69N/A ex: value="server1:2424 server2:2424" -->
69N/A <envvar name="WEBSERVERS" value="localhost:2424"/>
69N/A
69N/A <!-- The email address to send an email if the
69N/A source update fails, or a fatal error occurs while
69N/A the index database is beeing updated. -->
115N/A <envvar name="ADMINISTRATOR" value="root@localhost"/>
69N/A
69N/A <!-- The current version of the Mercurial log parser
69N/A expects C date format. -->
69N/A <envvar name="LC_ALL" value="C"/>
69N/A
69N/A </method_environment>
69N/A </method_context>
69N/A </exec_method>
69N/A
69N/A <exec_method
69N/A type="method"
69N/A name="stop"
69N/A exec=":kill"
69N/A timeout_seconds="-1">
69N/A </exec_method>
69N/A </instance>
72N/A
72N/A <stability value="Unstable" />
69N/A
69N/A <template>
69N/A <common_name>
69N/A <loctext xml:lang="C">OpenGrok indexing service</loctext>
69N/A </common_name>
69N/A </template>
69N/A </service>
69N/A</service_bundle>