blob: c4993ebbd65e6d4939fac8bdc00a1eb8451adfd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='@SMF_NAME@'>
<service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'>
<create_default_instance enabled='false' />
<single_instance />
<dependency name='multi-user' grouping='require_all' restart_on='refresh' type='service'>
<service_fmri value='svc:/milestone/multi-user' />
</dependency>
<dependency name='config' grouping='require_all' restart_on='restart' type='path'>
<service_fmri value='file://@PKG_SYSCONFDIR@/dnsmasq.conf' />
</dependency>
<dependent name='dnsmasq_multi-user-server' grouping='optional_all' restart_on='none'>
<service_fmri value='svc:/milestone/multi-user-server' />
</dependent>
<exec_method type='method' name='start' exec='@PREFIX@/sbin/dnsmasq -C %{config_file}' timeout_seconds='60'>
<method_context>
<method_credential user='root' group='root' />
</method_context>
</exec_method>
<exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' />
<exec_method type='method' name='refresh' exec=':kill -HUP' timeout_seconds='60' />
<property_group name="application" type="application">
<propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/dnsmasq.conf" />
</property_group>
<template>
<common_name>
<loctext xml:lang='C'>dnsmasq server</loctext>
</common_name>
<description>
<loctext xml:lang='C'>dnsmasq - A lightweight DHCP and caching DNS server.</loctext>
</description>
<documentation>
<manpage title='dnsmasq' section='8' manpath='@PREFIX@/@PKGMANDIR@' />
</documentation>
</template>
</service>
</service_bundle>
|