Windows service wrapper for generic executables. This will help users to create simple services for their binaries.
The project is created and maintained under Apache License v2
Beside just wrapping binaries the service wrapper has some interesting features:
--log-file <file>this will allow the service wrapper to output the STD_ERR and STD_OUT to a given file specified byenvironment-fileenvironment file to be added to the given wrapped binaryenvironment-file-pshellenvironment file in powershell format to be added to the given wrapped binaryexec-start-precommand to be executed before starting the serviceservice-commandservice command lineconfigpath to an ini file that may contain any of the above parameters.
Simple example to wrap a binary:
TODO
Simple example to wrap standard out and error:
TODO
Simple example to set the environment file:
TODO
Simple example to execute a command before starting the service:
TODO
An example that contains all of the above:
TODO
This project can be compiled either from Visual Studio 2015 or 2017.
You will have to download the appropriate platform toolset for each version.
You can compile either from the GUI or the command line.
An example script can be found here for your convenience.