xref: /illumos-gate/usr/src/cmd/man/update-man-index.xml (revision 13b136d3061155363c62c9f6568d25b8b27da8f6)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 This file and its contents are supplied under the terms of the
5 Common Development and Distribution License ("CDDL"), version 1.0.
6 You may only use this file in accordance with the terms of version
7 1.0 of the CDDL.
8
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.
12
13 Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
14-->
15
16<service_bundle type='manifest' name='system/man:update-man-index'>
17
18<service
19	name='system/update-man-index'
20	type='service'
21	version='1'>
22
23	<create_default_instance enabled='true' />
24
25	<single_instance/>
26
27	<dependency
28		name='fs-local'
29		grouping='require_all'
30		restart_on='none'
31		type='service'>
32		<service_fmri value='svc:/system/filesystem/local' />
33	</dependency>
34
35	<exec_method
36		type='method'
37		name='start'
38		exec='/lib/svc/method/update-man-index %{config/manpath:}'
39		timeout_seconds='300' />
40
41	<exec_method
42		type='method'
43		name='stop'
44		exec=':true'
45		timeout_seconds='3' />
46
47	<exec_method
48		type='method'
49		name='refresh'
50		exec=':true'
51		timeout_seconds='3' />
52
53	<property_group name='startd' type='framework'>
54		<propval name='duration' type='astring' value='transient' />
55	</property_group>
56
57        <property_group name='config' type='application'>
58                <property name='manpath' type='astring'>
59			<astring_list>
60				<value_node value='/usr/share/man' />
61				<value_node value='/usr/has/man' />
62			</astring_list>
63		</property>
64        </property_group>
65
66	<stability value='Unstable' />
67
68	<template>
69		<common_name>
70			<loctext xml:lang='C'>
71				Man page index database updater
72			</loctext>
73		</common_name>
74		<documentation>
75			<manpage title='man' section='1'
76				manpath='/usr/share/man' />
77		</documentation>
78	</template>
79</service>
80
81</service_bundle>
82