2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
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.
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"/>
24 <dependency name="filesystem-local" grouping="require_all" restart_on="none" type="service">
25 <service_fmri value="svc:/system/filesystem/local:default"/>
28 <exec_method type="method" name="start" exec="/usr/mongodb/3.4/bin/mongod --fork --config %{options/config}" timeout_seconds="60">
30 <method_credential user='mongodb' group='mongodb' />
32 <envvar name='LANG' value='C'/>
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"/>
45 <property_group name='options' type='application'>
46 <propval name='config' type='astring' value='/etc/mongodb/3.4/mongod.conf' />
49 <instance name="default" enabled="false"/>
51 <stability value="Evolving"/>