Add MongoDB 3.4
[unleashed-userland.git] / components / database / mongodb-34 / files / mongodb_34.xml
blobc6aef0636aed3dd9a6fe97524855325f009c666d
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
5 This file and its contents are supplied under the terms of the
6 Common Development and Distribution License ("CDDL)". You may
7 only use this file in accordance with the terms of the CDDL.
9 A full copy of the text of the CDDL should have accompanied this
10 source. A copy of the CDDL is also available via the Internet at
11 http://www.illumos.org/license/CDDL.
13 Copyright 2012 EveryCity Ltd. All rights reserved.
15 -->
16 <service_bundle type="manifest" name="mongodb">
18   <service name="application/database/mongodb_34" type="service" version="1">
20     <dependency name="network" grouping="require_all" restart_on="error" type="service">
21       <service_fmri value="svc:/milestone/network:default"/>
22     </dependency>
24     <dependency name="filesystem-local" grouping="require_all" restart_on="none" type="service">
25       <service_fmri value="svc:/system/filesystem/local:default"/>
26     </dependency>
28     <exec_method type="method" name="start" exec="/usr/mongodb/3.4/bin/mongod --fork --config %{options/config}" timeout_seconds="60">
29       <method_context>
30         <method_credential user='mongodb' group='mongodb' />
31         <method_environment>
32           <envvar name='LANG' value='C'/>
33         </method_environment>
34       </method_context>
35     </exec_method>
37     <exec_method type='method' name='refresh' exec=':kill -HUP' timeout_seconds='60'/>
39     <exec_method type="method" name="stop" exec=":kill" timeout_seconds="30"/>
41     <property_group name="startd" type="framework">
42       <propval name="ignore_error" type="astring" value="core,signal"/>
43     </property_group>
45     <property_group name='options' type='application'>
46        <propval name='config' type='astring' value='/etc/mongodb/3.4/mongod.conf' />
47     </property_group>
49     <instance name="default" enabled="false"/>
51     <stability value="Evolving"/>
53   </service>
55 </service_bundle>