Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ServiceWrapper
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
scripts
ServiceWrapper
Commits
a7e5b15b
Commit
a7e5b15b
authored
6 years ago
by
L. Ellenbeck
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
ada3093b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+23
-0
23 additions, 0 deletions
README.md
with
23 additions
and
0 deletions
README.md
+
23
−
0
View file @
a7e5b15b
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment