macOS: Starting the Autostart Service With launchd
On macOS, launchd is used to start the autostart service.
An example configuration file can be found in
/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist. To enable
the service copy the file to /Library/LaunchDaemons and change the Disabled
key from true to false. Furthermore replace the second parameter to an existing
configuration file which has the same format as on Linux, see .
To manually start the service use the following command:
# launchctl load /Library/LaunchDaemons/org.virtualbox.vboxautostart.plist
For additional information on how launchd services can be configured see:
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/BPSystemStartup.html.