VirtualBox

source: vbox/trunk/src/VBox/Installer/solaris/virtualbox-autostart.xml

Last change on this file was 98103, checked in by vboxsync, 17 months ago

Copyright year updates by scm.

  • Property svn:keywords set to Id Revision
File size: 3.7 KB
Line 
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 98103 2023-01-17 14:15:46Z vboxsync $
6-->
7<!--
8 Copyright (C) 2012-2023 Oracle and/or its affiliates.
9
10 This file is part of VirtualBox base platform packages, as
11 available from https://www.virtualbox.org.
12
13 This program is free software; you can redistribute it and/or
14 modify it under the terms of the GNU General Public License
15 as published by the Free Software Foundation, in version 3 of the
16 License.
17
18 This program is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, see <https://www.gnu.org/licenses>.
25
26 SPDX-License-Identifier: GPL-3.0-only
27-->
28
29<service_bundle type='manifest' name='SUNWvbox:autostart'>
30
31<service
32 name='application/virtualbox/autostart'
33 type='service'
34 version='1'>
35
36 <single_instance />
37
38 <dependency
39 name='fs-local'
40 grouping='require_all'
41 restart_on='none'
42 type='service'>
43 <service_fmri value='svc:/system/filesystem/local' />
44 </dependency>
45
46 <dependency
47 name='fs-autofs'
48 grouping='optional_all'
49 restart_on='none'
50 type='service'>
51 <service_fmri value='svc:/system/filesystem/autofs' />
52 </dependency>
53
54 <dependency
55 name='network-service'
56 grouping='require_all'
57 restart_on='none'
58 type='service'>
59 <service_fmri value='svc:/network/service' />
60 </dependency>
61
62 <dependency
63 name='name-services'
64 grouping='require_all'
65 restart_on='refresh'
66 type='service'>
67 <service_fmri value='svc:/milestone/name-services' />
68 </dependency>
69
70 <instance name='default' enabled='false'>
71
72 <dependent
73 name='virtualbox-autostart_multi-user'
74 grouping='optional_all'
75 restart_on='none'>
76 <service_fmri value='svc:/milestone/multi-user' />
77 </dependent>
78
79 <exec_method
80 type='method'
81 name='start'
82 exec='/opt/VirtualBox/smf-vboxautostart.sh %m'
83 timeout_seconds='15'>
84 <method_context>
85 <method_credential user='root' group='root' />
86 </method_context>
87 </exec_method>
88
89 <exec_method
90 type='method'
91 name='stop'
92 exec='/opt/VirtualBox/smf-vboxautostart.sh %m'
93 timeout_seconds='0'>
94 <method_context>
95 <method_credential user='root' group='root' />
96 </method_context>
97 </exec_method>
98
99 <property_group name='startd' type='framework'>
100 <!-- sub-process core dumps/signals shouldn't restart session -->
101 <propval name='ignore_error' type='astring' value='core,signal' />
102 <propval name='duration' type='astring' value='transient' />
103 </property_group>
104
105 <property_group name='config' type='application'>
106 <propval name='config' type='astring' value='/etc/vbox/autostart.cfg' />
107 <propval name='vboxgroup' type='astring' value='staff' />
108 </property_group>
109
110 <template>
111 <common_name>
112 <loctext xml:lang='C'>
113 VirtualBox Autostart
114 </loctext>
115 </common_name>
116 </template>
117
118 </instance>
119
120 <stability value='External' />
121
122</service>
123
124</service_bundle>
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use