1 | <?xml version="1.0"?>
|
---|
2 | <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
|
---|
3 | <!--
|
---|
4 | # Solaris SMF service manifest for VirtualBox autostart service.
|
---|
5 | # $Id: virtualbox-autostart.xml 96316 2022-08-18 19:42:30Z vboxsync $
|
---|
6 | -->
|
---|
7 | <!--
|
---|
8 | Copyright (C) 2012-2020 Oracle Corporation
|
---|
9 |
|
---|
10 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | available from http://www.virtualbox.org. This file is free software;
|
---|
12 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | General Public License (GPL) as published by the Free Software
|
---|
14 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | -->
|
---|
18 |
|
---|
19 | <service_bundle type='manifest' name='SUNWvbox:autostart'>
|
---|
20 |
|
---|
21 | <service
|
---|
22 | name='application/virtualbox/autostart'
|
---|
23 | type='service'
|
---|
24 | version='1'>
|
---|
25 |
|
---|
26 | <single_instance />
|
---|
27 |
|
---|
28 | <dependency
|
---|
29 | name='fs-local'
|
---|
30 | grouping='require_all'
|
---|
31 | restart_on='none'
|
---|
32 | type='service'>
|
---|
33 | <service_fmri value='svc:/system/filesystem/local' />
|
---|
34 | </dependency>
|
---|
35 |
|
---|
36 | <dependency
|
---|
37 | name='fs-autofs'
|
---|
38 | grouping='optional_all'
|
---|
39 | restart_on='none'
|
---|
40 | type='service'>
|
---|
41 | <service_fmri value='svc:/system/filesystem/autofs' />
|
---|
42 | </dependency>
|
---|
43 |
|
---|
44 | <dependency
|
---|
45 | name='network-service'
|
---|
46 | grouping='require_all'
|
---|
47 | restart_on='none'
|
---|
48 | type='service'>
|
---|
49 | <service_fmri value='svc:/network/service' />
|
---|
50 | </dependency>
|
---|
51 |
|
---|
52 | <dependency
|
---|
53 | name='name-services'
|
---|
54 | grouping='require_all'
|
---|
55 | restart_on='refresh'
|
---|
56 | type='service'>
|
---|
57 | <service_fmri value='svc:/milestone/name-services' />
|
---|
58 | </dependency>
|
---|
59 |
|
---|
60 | <instance name='default' enabled='false'>
|
---|
61 |
|
---|
62 | <dependent
|
---|
63 | name='virtualbox-autostart_multi-user'
|
---|
64 | grouping='optional_all'
|
---|
65 | restart_on='none'>
|
---|
66 | <service_fmri value='svc:/milestone/multi-user' />
|
---|
67 | </dependent>
|
---|
68 |
|
---|
69 | <exec_method
|
---|
70 | type='method'
|
---|
71 | name='start'
|
---|
72 | exec='/opt/VirtualBox/smf-vboxautostart.sh %m'
|
---|
73 | timeout_seconds='15'>
|
---|
74 | <method_context>
|
---|
75 | <method_credential user='root' group='root' />
|
---|
76 | </method_context>
|
---|
77 | </exec_method>
|
---|
78 |
|
---|
79 | <exec_method
|
---|
80 | type='method'
|
---|
81 | name='stop'
|
---|
82 | exec='/opt/VirtualBox/smf-vboxautostart.sh %m'
|
---|
83 | timeout_seconds='0'>
|
---|
84 | <method_context>
|
---|
85 | <method_credential user='root' group='root' />
|
---|
86 | </method_context>
|
---|
87 | </exec_method>
|
---|
88 |
|
---|
89 | <property_group name='startd' type='framework'>
|
---|
90 | <!-- sub-process core dumps/signals shouldn't restart session -->
|
---|
91 | <propval name='ignore_error' type='astring' value='core,signal' />
|
---|
92 | <propval name='duration' type='astring' value='transient' />
|
---|
93 | </property_group>
|
---|
94 |
|
---|
95 | <property_group name='config' type='application'>
|
---|
96 | <propval name='config' type='astring' value='/etc/vbox/autostart.cfg' />
|
---|
97 | <propval name='vboxgroup' type='astring' value='staff' />
|
---|
98 | </property_group>
|
---|
99 |
|
---|
100 | <template>
|
---|
101 | <common_name>
|
---|
102 | <loctext xml:lang='C'>
|
---|
103 | VirtualBox Autostart
|
---|
104 | </loctext>
|
---|
105 | </common_name>
|
---|
106 | </template>
|
---|
107 |
|
---|
108 | </instance>
|
---|
109 |
|
---|
110 | <stability value='External' />
|
---|
111 |
|
---|
112 | </service>
|
---|
113 |
|
---|
114 | </service_bundle>
|
---|