Opened 15 years ago
Closed 5 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 )
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)
comment:1 by , 15 years ago
comment:2 by , 5 years ago
Description: | modified (diff) |
---|---|
Resolution: | → obsolete |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.