260N/A<?xml version="1.0"?>
260N/A<!--
260N/ACDDL HEADER START
260N/A
260N/AThe contents of this file are subject to the terms of the
260N/ACommon Development and Distribution License (the "License").
260N/AYou may not use this file except in compliance with the License.
260N/A
260N/AYou can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
260N/Aor http://www.opensolaris.org/os/licensing.
260N/ASee the License for the specific language governing permissions
260N/Aand limitations under the License.
260N/A
260N/AWhen distributing Covered Code, include this CDDL HEADER in each
260N/Afile and include the License file at usr/src/OPENSOLARIS.LICENSE.
260N/AIf applicable, add the following below this CDDL HEADER, with the
260N/Afields enclosed by brackets "[]" replaced with your own identifying
260N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
260N/A
260N/ACDDL HEADER END
260N/A
260N/ACopyright 2010 Sun Microsystems, Inc. All rights reserved.
260N/AUse is subject to license terms.
260N/A
260N/A-->
260N/A<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
260N/A<service_bundle type="manifest" name="opengrok">
260N/A<service
260N/A name="application/opengrok"
260N/A type="service"
260N/A version="1">
260N/A
260N/A <single_instance />
260N/A
260N/A <dependency
260N/A name="filesystem"
260N/A grouping="require_all"
260N/A restart_on="none"
260N/A type="service">
260N/A <service_fmri value="svc:/system/filesystem/local:default" />
260N/A </dependency>
260N/A
260N/A <dependency
260N/A name="network"
260N/A grouping="require_all"
260N/A restart_on="none"
260N/A type="service">
260N/A <service_fmri value="svc:/milestone/network:default" />
260N/A </dependency>
260N/A
260N/A <dependency
260N/A name="autofs"
260N/A grouping="require_all"
260N/A restart_on="none"
260N/A type="service">
260N/A <service_fmri value="svc:/system/filesystem/autofs:default" />
260N/A </dependency>
260N/A
260N/A <dependency
260N/A name="tomcat"
260N/A grouping="require_all"
260N/A restart_on="none"
260N/A type="service">
260N/A <service_fmri value="svc:/network/http:tomcat6" />
260N/A </dependency>
260N/A
<property_group
name="opengrok"
type="application">
<propval
name="maxmemory"
type="astring"
value="256" />
<propval
name="verbose"
type="boolean"
value="true" />
<propval
name="srcdir"
type="astring"
value="/var/opengrok/src" />
<propval
name="cachedir"
type="astring"
value="/var/opengrok/data" />
<propval
name="default_params"
type="astring"
value="-P -S -r on" />
<propval
name="java_extra_params"
type="astring"
value="" />
<propval
name="extra_params"
type="astring"
value="" />
<propval
name="readonly_config"
type="astring"
value="/etc/opengrok/readonly_configuration.xml" />
</property_group>
<instance
name="default"
enabled="false">
<exec_method
type="method"
name="start"
exec="/lib/svc/method/svc-opengrok start"
timeout_seconds="30" >
<method_context>
<method_credential
user="webservd"
group="webservd" />
</method_context>
</exec_method>
<exec_method
type="method"
name="stop"
exec="/lib/svc/method/svc-opengrok stop %{restarter/contract}"
timeout_seconds="60" >
<method_context>
<method_credential
user="webservd"
group="webservd" />
</method_context>
</exec_method>
<exec_method
type='method'
name='refresh'
exec='/lib/svc/method/svc-opengrok refresh'
timeout_seconds='60' >
<method_context>
<method_credential
user="webservd"
group="webservd" />
</method_context>
</exec_method>
</instance>
<stability value="Unstable" />
<template>
<common_name>
<loctext xml:lang="C">
Opengrok application server
</loctext>
</common_name>
<documentation>
<manpage
title="opengrok"
section="1"
manpath="/usr/opengrok/man" />
</documentation>
</template>
</service>
</service_bundle>