-
Notifications
You must be signed in to change notification settings - Fork 4
/
jfy.xml
111 lines (93 loc) · 2.51 KB
/
jfy.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
Copyright (c) 2018, James C. McPherson. All rights reserved.
NOTE: This service manifest is not editable; its contents will
be overwritten by package or patch operations, including
operating system upgrade. Make customizations in a different
file.
-->
<service_bundle type='manifest' name='jfy'>
<service
name='application/jfy'
type='service'
version='1'>
<create_default_instance enabled='false' />
<!--
We need /var/share to be mounted before we start.
-->
<dependency
name='filesystem'
type='service'
grouping='require_all'
restart_on='none'>
<service_fmri value='svc:/system/filesystem/local:default' />
</dependency>
<!--
We need name services running so we can resolve pvoutput.org
-->
<dependency
name='nscd'
type='service'
grouping='require_all'
restart_on='none'>
<service_fmri value='svc:/milestone/name-services:default' />
</dependency>
<!-- Easiest if sstore is already up. -->
<dependency
name='sstore'
type='service'
grouping='require_all'
restart_on='refresh'>
<service_fmri value='svc:/system/sstore:default' />
</dependency>
<method_context>
<method_credential user='solar' group='solar'/>
</method_context>
<exec_method
type='method'
name='start'
exec='/lib/svc/method/svc-jfy %m'
timeout_seconds='60' />
<exec_method
type='method'
name='stop'
exec=':kill'
timeout_seconds='60' />
<!-- sstore authorizations -->
<property_group name="general" type="framework">
<propval name="action_authorization" type="astring"
value="solaris.sstore.update.res" />
<propval name="value_authorization" type="astring"
value="solaris.sstore.write" />
</property_group>
<property_group name='config' type='application'>
<propval name='logpath' type='astring'
value='/var/jfy/log/' />
</property_group>
<template>
<common_name>
<loctext xml:lang='C'>
JFY Inverter monitoring daemon
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
Capture data from JFY Inverters.
</loctext>
</description>
<documentation>
<manpage title='jfymonitor' section='1'
manpath='/usr/share/man' />
</documentation>
<pg_pattern name='config' type='application' target='this'
required='true'>
<description>
<loctext xml:lang='C'>
Configuration options for jfymonitor.
</loctext>
</description>
</pg_pattern>
</template>
</service>
</service_bundle>