VirtualBox

source: vbox/trunk/src/VBox/Installer/solaris/virtualbox-webservice.xml@ 21183

Last change on this file since 21183 was 21183, checked in by vboxsync, 15 years ago

Solaris/Installer: fixed incorrect smf-vboxwebsrv.sh.

File size: 3.5 KB
Line 
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4# Sun VirtualBox
5# Solaris SMF service manifest for VirtualBox webservice server.
6# $Id$
7
8 Copyright (C) 2008-2009 Sun Microsystems, Inc.
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 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
19 Clara, CA 95054 USA or visit http://www.sun.com if you need
20 additional information or have any questions.
21-->
22
23<service_bundle type='manifest' name='SUNWvbox:webservice'>
24
25<service
26 name='application/virtualbox/webservice'
27 type='service'
28 version='1'>
29
30 <single_instance />
31
32 <dependency
33 name='fs-local'
34 grouping='require_all'
35 restart_on='none'
36 type='service'>
37 <service_fmri value='svc:/system/filesystem/local' />
38 </dependency>
39
40 <dependency
41 name='network-service'
42 grouping='require_all'
43 restart_on='none'
44 type='service'>
45 <service_fmri value='svc:/network/service' />
46 </dependency>
47
48 <dependency
49 name='name-services'
50 grouping='require_all'
51 restart_on='refresh'
52 type='service'>
53 <service_fmri value='svc:/milestone/name-services' />
54 </dependency>
55
56 <instance name='default' enabled='false'>
57
58 <dependent
59 name='virtualbox-webservice_multi-user'
60 grouping='optional_all'
61 restart_on='none'>
62 <service_fmri value='svc:/milestone/multi-user' />
63 </dependent>
64
65 <exec_method
66 type='method'
67 name='start'
68 exec='/opt/VirtualBox/smf-vboxwebsrv.sh %m'
69 timeout_seconds='15'>
70 <method_context>
71 <method_credential user='root' group='root' />
72 </method_context>
73 </exec_method>
74
75 <exec_method
76 type='method'
77 name='stop'
78 exec=':kill'
79 timeout_seconds='15'>
80 <method_context>
81 <method_credential user='root' group='root' />
82 </method_context>
83 </exec_method>
84
85 <property_group name='startd' type='framework'>
86 <!-- The default contract restarter behavior is not appropriate,
87 it will kill VMs if the service is restarted. -->
88 <propval name='duration' type='astring' value='child' />
89 <!-- sub-process core dumps/signals shouldn't restart session -->
90 <propval name='ignore_error' type='astring' value='core,signal' />
91 </property_group>
92
93 <property_group name='config' type='application'>
94 <propval name='user' type='astring' value='root' />
95 <propval name='host' type='astring' value='localhost' />
96 <propval name='port' type='integer' value='18083' />
97 </property_group>
98
99 <template>
100 <common_name>
101 <loctext xml:lang='C'>
102 VirtualBox Webservice
103 </loctext>
104 </common_name>
105 </template>
106
107 </instance>
108
109 <stability value='External' />
110
111</service>
112
113</service_bundle>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette