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