1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="vboxwebsrv-solaris">
|
---|
4 | <title>Oracle Solaris: Starting the Web Service With SMF</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>
|
---|
8 | On Oracle Solaris hosts, the <ph conkeyref="vbox-conkeyref-phrases/product-name"/> web service daemon
|
---|
9 | is integrated into the SMF framework. You can change the
|
---|
10 | parameters, but do not have to if the defaults below already
|
---|
11 | match your needs:
|
---|
12 | </p>
|
---|
13 | <pre xml:space="preserve">svccfg -s svc:/application/virtualbox/webservice:default setprop config/host=localhost
|
---|
14 | svccfg -s svc:/application/virtualbox/webservice:default setprop config/port=18083
|
---|
15 | svccfg -s svc:/application/virtualbox/webservice:default setprop config/user=root</pre>
|
---|
16 | <p>
|
---|
17 | The table in <xref href="vboxwebsrv-linux.dita#vboxwebsrv-linux"/> showing the
|
---|
18 | parameter names and defaults also applies for Oracle Solaris.
|
---|
19 | The parameter names must be changed to lowercase and a prefix of
|
---|
20 | <codeph>config/</codeph> has to be added. For example:
|
---|
21 | <codeph>config/user</codeph> or
|
---|
22 | <codeph>config/ssl_keyfile</codeph>. If you make any change,
|
---|
23 | do not forget to run the following command to put the changes
|
---|
24 | into effect immediately:
|
---|
25 | </p>
|
---|
26 | <pre xml:space="preserve">svcadm refresh svc:/application/virtualbox/webservice:default</pre>
|
---|
27 | <p>
|
---|
28 | If you forget the above command then the previous settings are
|
---|
29 | used when enabling the service. Check the current property
|
---|
30 | settings as follows:
|
---|
31 | </p>
|
---|
32 | <pre xml:space="preserve">svcprop -p config svc:/application/virtualbox/webservice:default</pre>
|
---|
33 | <p>
|
---|
34 | When everything is configured correctly you can start the
|
---|
35 | <ph conkeyref="vbox-conkeyref-phrases/product-name"/> web service with the following command:
|
---|
36 | </p>
|
---|
37 | <pre xml:space="preserve">svcadm enable svc:/application/virtualbox/webservice:default</pre>
|
---|
38 | <p>
|
---|
39 | For more information about SMF, please refer to the Oracle
|
---|
40 | Solaris documentation.
|
---|
41 | </p>
|
---|
42 | </body>
|
---|
43 |
|
---|
44 | </topic>
|
---|