Wrapper that uses Topshelf to run EventStore as a Windows Service.
To install do the following:
-
Download
Event Store
from https://geteventstore.com -
Download a release from the Releases page and unzip somewhere, for example
C:\ges-runner\
-
Update
Runner.yaml
file with location toEventStore.ClusterNode.exe
to run and the.esconfig
you wish to use, according to YAML documentation -
Run the
Install.ps1
script with the same servicename you configured inRunner.yaml
, for example:powershell ./Install.ps1 -servicename ges
-
Instead you can also simply run one of the following:
ges-runner.exe install
ges-runner.exe start
ges-runner.exe stop
ges-runner.exe uninstall
-
Enjoy Event Store
λ ges-runner.exe install
Configuration Result:
[Success] Name ges
[Success] Description Run Event Store
[Success] ServiceName ges
Topshelf v3.2.150.0, .NET Framework v4.0.30319.42000
Running a transacted installation.
Beginning the Install phase of the installation.
Installing ges service
Installing service ges...
Service ges has been successfully installed.
The Install phase completed successfully, and the Commit phase is beginning.
The Commit phase completed successfully.
The transacted install has completed.
λ ges-runner.exe start
Configuration Result:
[Success] Name ges
[Success] Description Run Event Store
[Success] ServiceName ges
Topshelf v3.2.150.0, .NET Framework v4.0.30319.42000
The ges service was started.
λ ges-runner.exe stop
Configuration Result:
[Success] Name ges
[Success] Description Run Event Store
[Success] ServiceName ges
Topshelf v3.2.150.0, .NET Framework v4.0.30319.42000
The ges service was stopped.
λ ges-runner.exe uninstall
Configuration Result:
[Success] Name ges
[Success] Description Run Event Store
[Success] ServiceName ges
Topshelf v3.2.150.0, .NET Framework v4.0.30319.42000
The uninstall is beginning.
Uninstalling ges service
Removing EventLog source ges.
Service ges is being removed from the system...
Service ges was successfully removed from the system.
The uninstall has completed.
git clone git@github.com:exira/ges-runner.git -c core.autocrlf=input
ges-runner is licensed under MIT. Refer to LICENSE.txt for more information
Code copied from this gist: https://gist.github.com/trbngr/5083266
Forked from https://github.com/mastoj/EventStoreWinServiceWrapper