-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathuserscript.xml
48 lines (38 loc) · 1.52 KB
/
userscript.xml
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
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='illumos-metadata'>
<service name='system/illumos/userscript' type='service' version='1'>
<!-- Create this service disabled by default. If required, it will be
enabled by the metadata agent. -->
<create_default_instance enabled='false' />
<single_instance />
<!-- Run after the metadata service has completed. -->
<dependency name='devices' grouping='require_all' restart_on='none'
type='service'>
<service_fmri value='svc:/system/illumos/metadata' />
</dependency>
<!-- Run once we hit multi-user, so that the network and file systems have
been set up. -->
<dependency name='multi-user' grouping='require_all' restart_on='none'
type='service'>
<service_fmri value='svc:/milestone/multi-user' />
</dependency>
<exec_method type='method' name='start'
exec='/usr/lib/userscript.sh'
timeout_seconds='3600' />
<exec_method type='method' name='stop' exec=':true' timeout_seconds='3' />
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='transient' />
</property_group>
<stability value='Unstable' />
<template>
<common_name>
<loctext xml:lang='C'>illumos Metadata Agent Userscript</loctext>
</common_name>
<description>
<loctext xml:lang='C'>Runs userscript from Metadata</loctext>
</description>
</template>
</service>
</service_bundle>
<!-- vim: set ts=2 sts=2 sw=2 et: -->