Opened 15 years ago

Closed 4 years ago

#5946 closed enhancement (obsolete)

RFE: VboxHeadless have daemon mode or similar functionality

Reported by: Alex Smith Owned by:
Component: VM control Version: VirtualBox 3.1.2
Keywords: Cc:
Guest type: Solaris Host type: Windows

Description (last modified by aeichner)

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 (2)

in reply to:  description comment:1 by Ivo Smits, 15 years ago

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.

comment:2 by aeichner, 4 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use