xref: /illumos-gate/usr/src/test/i2c-tests/i2csimd/i2csimd.xml (revision aecc710ab066150d47e5e9e7269e2e0d69107b4e)
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 2025 Oxide Computer Company
14-->
15<service_bundle type="manifest"
16                name="i2csimd">
17
18    <service name="system/i2csimd"
19             type="service"
20             version="1">
21
22        <create_default_instance enabled="false" />
23
24        <dependency name="multiuser"
25                    grouping="require_all"
26                    restart_on="none"
27                    type="service">
28            <service_fmri value="svc:/milestone/multi-user" />
29        </dependency>
30
31        <dependency name="devices"
32                    grouping="require_all"
33                    restart_on="none"
34                    type="service">
35            <service_fmri value="svc:/milestone/devices" />
36        </dependency>
37
38
39        <exec_method name="start"
40                     type="method"
41                     timeout_seconds="60"
42                     exec="/opt/i2c-tests/svc/i2csimd" />
43
44        <exec_method type="method"
45                     name="stop"
46                     exec=":kill"
47                     timeout_seconds="10" />
48
49        <template>
50          <common_name>
51            <loctext xml:lang="C">I2C Simulation Daemon</loctext>
52          </common_name>
53        </template>
54
55    </service>
56
57</service_bundle>
58