Windows Service support
Implement true Windows Service support so that SABnzbd can run as a Windows service without trickery.
Basic functionality has been implemented.
SABnzbd can register itself as a service by using command line parameters.
It responds to start, stop and restart and does some very basic logging to Windows event log.
Implemented SABHelper service to make UI or scheduled restart of SABnzbd service possible.
- Currently only a binary built on XP (not on Win7) will work. Likely to be a py2exe problem.
- The Helper should check the actual service. Since it can readout the command line from the registry it can know on which host:port SABnzbd is active, so it can issue periodic API requests. When unresponsive for too long, it can kill and restart the service.
- Windows Event Logging is quite basic now, needs some improvement.
Integration in installer will not be implemented.
There's no need to installing as a service directly.
The feature is for advanced users only and needs some configuration beforehand.
E.g. the service needs the -f option.