Skip to content
Snippets Groups Projects
Commit a7e5b15b authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

Update README.md

parent ada3093b
No related branches found
No related tags found
No related merge requests found
# util-ServiceWrapper # util-ServiceWrapper
Simple wrapper to start an arbitray executable as a windows service.
## Getting started
Build the project with msbuild/Visual Studio 2017.
Use the sc command to add your service like so:
```
sc.exe create "YourServiceName" binPath="Path\to\ServiceWrapper.exe YourServiceName Path\to\your\custom\exe Arg1 Arg2 Arg3... " DisplayName="YourServiceName"
```
The arguments
``
Arg1 Arg2 Arg3...
``
are optional and will be passed to your custom executable as commandline parameters.
As an example:
```
sc.exe create "Nomad" binPath="C:\Programs\ServiceWrapper\TestService.exe Nomad C:\Programs\Nomad\Nomad.exe agent -config=C:\Programs\Nomad\server.conf" DisplayName="Nomad"
```
creates a service for the application Nomad and passes its configuration to it.
Erro logs are located in you temp folder in ``ServiceWrapper.log``.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment