~drizzle-trunk/drizzle/development

1025.1.1 by Trond Norbye
Add configuration files to integrate to Solaris SMF
1
<?xml version="1.0"?>
2
<!--
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
3
  Copyright (C) 2009 Sun Microsystems, Inc.
1025.1.1 by Trond Norbye
Add configuration files to integrate to Solaris SMF
4
5
  This program is free software; you can redistribute it and/or modify
6
  it under the terms of the GNU General Public License as published by
7
  the Free Software Foundation; version 2 of the License.
8
9
  This program is distributed in the hope that it will be useful,
10
  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
  GNU General Public License for more details.
13
14
  You should have received a copy of the GNU General Public License
15
  along with this program; if not, write to the Free Software
16
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
-->
18
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
19
<service_bundle type="manifest" name="drizzle">
20
    <service name="application/database/drizzle" type="service" version="1">
21
        <single_instance/>
22
23
        <dependency name="multi-user-server" grouping="require_all" restart_on="none" type="service">
24
            <service_fmri value="svc:/milestone/multi-user-server" />
25
        </dependency>
26
27
        
28
        <!-- We need to map the name of the authorizations we defined to this service -->
29
        <property_group name="general" type="framework">
30
            <propval name="action_authorization" type="astring" 
31
                     value="solaris.smf.manage.drizzle" />
32
            <propval name="value_authorization" type="astring" 
33
                     value="solaris.smf.value.drizzle" />
34
        </property_group>
35
36
37
        <property_group name="drizzle" type="application">
38
            <propval name="datadir" type="astring" 
39
                     value="@localstatedir@/data" />
40
            <propval name="corepattern" type="astring" 
41
                     value="@localstatedir@/crash/core.%f.%p" />
42
            <propval name="port" type="astring" 
43
                     value="4427" />
44
        </property_group>
45
46
        <!-- Define the instance and how to start / stop it -->
47
        <instance name="drizzle" enabled="false">
48
            <exec_method type="method" name="start" exec="/lib/svc/method/drizzle start" timeout_seconds="30" >
49
                <method_context>
50
                    <method_credential user="drizzled" group="drizzled" />
51
                </method_context>
52
            </exec_method>
53
            <exec_method type="method" name="stop" exec="/lib/svc/method/drizzle stop  %{restarter/contract}" timeout_seconds="60" >
54
                <method_context>
55
                    <method_credential user="drizzled" group="drizzled" />
56
                </method_context>
57
            </exec_method>
58
        </instance>
59
        
60
61
       <stability value="Unstable" />
62
        <template>
63
            <common_name>
64
                <loctext xml:lang="C">Drizzle database server</loctext>
65
            </common_name>
66
            <documentation>
67
                <manpage title="drizzle" section="1" manpath="@prefix@/share/man" />
68
            </documentation>
69
        </template>
70
    </service>
71
</service_bundle>