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="autostart-osx">
|
---|
4 | <title>macOS: Starting the Autostart Service With launchd</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>
|
---|
8 | On macOS, launchd is used to start the <ph conkeyref="vbox-conkeyref-phrases/product-name"/> autostart
|
---|
9 | service. An example configuration file can be found in
|
---|
10 | <filepath>/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist</filepath>.
|
---|
11 | To enable the service copy the file to
|
---|
12 | <filepath>/Library/LaunchDaemons</filepath> and change the
|
---|
13 | <codeph>Disabled</codeph> key from <codeph>true</codeph> to
|
---|
14 | <codeph>false</codeph>. Furthermore replace the second
|
---|
15 | parameter to an existing configuration file which has the same
|
---|
16 | format as on Linux, see <xref href="autostart-linux.dita#autostart-linux"/>.
|
---|
17 | </p>
|
---|
18 | <p>
|
---|
19 | To manually start the service use the following command:
|
---|
20 | </p>
|
---|
21 | <pre xml:space="preserve"># launchctl load /Library/LaunchDaemons/org.virtualbox.vboxautostart.plist</pre>
|
---|
22 | <p>
|
---|
23 | For additional information on how launchd services can be
|
---|
24 | configured see:
|
---|
25 | </p>
|
---|
26 | <p><ph>http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/BPSystemStartup.html</ph>.
|
---|
27 | </p>
|
---|
28 | </body>
|
---|
29 |
|
---|
30 | </topic>
|
---|