VirtualBox

Ticket #5946 (new enhancement)

Opened 4 years ago

Last modified 4 years ago

RFE: VboxHeadless have daemon mode or similar functionality

Reported by: maverickbna Owned by:
Priority: minor Component: VM control
Version: VirtualBox 3.1.2 Keywords:
Cc: Guest type: Solaris
Host type: Windows

Description

Request: VboxHeadless save a daemon mode or out-of-box functionality for it to run as an NT service. This functionality would also be welcomed for *NIX hosts.

I don't know if this is viable, but would be welcomed.

Change History

comment:1 in reply to: ↑ description Changed 4 years ago by UFO

I would like to support this request, and am actually looking for the same thing on Linux hosts.

I suppose it would be rather complicated to re-write VboxHeadless into a windows service, because, as far as I know, windows services are quite different (in startup/shutdown) from normal applications.

On Linux, however, it can be done by adding only a few lines of code. One call to the daemon() function will do the job (and I have confirmed that it does actually work). Then all that's left is to redirect logging to a file. Some kind of pid file option would be very welcome as well (to kill, in case of emergency).

A built-in daemon function (even though already possible by using wrapper programs), can be used in web/remote interfaces and to start machines on system startup.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use