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 Solaris Zone Access.
|
---|
5 | # $Id: virtualbox-zoneaccess.xml 96316 2022-08-18 19:42:30Z vboxsync $
|
---|
6 | -->
|
---|
7 | <!--
|
---|
8 | Copyright (C) 2008-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:zoneaccess'>
|
---|
20 |
|
---|
21 | <service
|
---|
22 | name='application/virtualbox/zoneaccess'
|
---|
23 | type='service'
|
---|
24 | version='1'>
|
---|
25 |
|
---|
26 | <create_default_instance enabled='false' />
|
---|
27 |
|
---|
28 | <single_instance/>
|
---|
29 |
|
---|
30 | <!-- Wait for devices to be initialized as we depend on vboxdrv -->
|
---|
31 | <dependency
|
---|
32 | name='milestone'
|
---|
33 | grouping='require_all'
|
---|
34 | restart_on='none'
|
---|
35 | type='service'>
|
---|
36 | <service_fmri value='svc:/milestone/devices:default' />
|
---|
37 | </dependency>
|
---|
38 |
|
---|
39 | <!-- Wait for local filesystems to be mounted (just to be safe, don't start too early) -->
|
---|
40 | <dependency
|
---|
41 | name='filesystem-local'
|
---|
42 | grouping='require_all'
|
---|
43 | restart_on='none'
|
---|
44 | type='service'>
|
---|
45 | <service_fmri value='svc:/system/filesystem/local:default' />
|
---|
46 | </dependency>
|
---|
47 |
|
---|
48 | <exec_method
|
---|
49 | type='method'
|
---|
50 | name='start'
|
---|
51 | exec='/opt/VirtualBox/VBoxZoneAccess'
|
---|
52 | timeout_seconds='10' >
|
---|
53 | <method_context>
|
---|
54 | <method_credential user='root' group='root' />
|
---|
55 | </method_context>
|
---|
56 | </exec_method>
|
---|
57 |
|
---|
58 | <exec_method
|
---|
59 | type='method'
|
---|
60 | name='stop'
|
---|
61 | exec=':kill'
|
---|
62 | timeout_seconds='10' >
|
---|
63 | <method_context>
|
---|
64 | <method_credential user='root' group='root' />
|
---|
65 | </method_context>
|
---|
66 | </exec_method>
|
---|
67 |
|
---|
68 | <template>
|
---|
69 | <common_name>
|
---|
70 | <loctext xml:lang='C'>VirtualBox Zone Access Service.</loctext>
|
---|
71 | </common_name>
|
---|
72 | </template>
|
---|
73 | </service>
|
---|
74 |
|
---|
75 | </service_bundle>
|
---|
76 |
|
---|