Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

How to start heka as service in windows 7 #1963

Open
vpriyada opened this issue Jul 19, 2016 · 1 comment
Open

How to start heka as service in windows 7 #1963

vpriyada opened this issue Jul 19, 2016 · 1 comment

Comments

@vpriyada
Copy link

I have built the windows package for heka. As of now if I start heka using hekad from comamnd prompt heka starts as expected.
How do I start heka as a service in windows?
If i create heka as a service using windows service utility and start the service I get the error "The service did not respond in a timely fashion".
Can any of you share your experiences in running heka as service in windows

@tianlin
Copy link

tianlin commented Jul 20, 2016

I do it with nssm(https://nssm.cc/)
call nssm.exe install hekad hekad
call nssm.exe set hekad Application "%BIN_DIR%\hekad.exe"
call nssm.exe set hekad AppDirectory "%BIN_DIR%"
call nssm.exe set hekad AppParameters -config="%CONF_DIR%\hekad.toml"
call nssm.exe set hekad AppStopMethodSkip 0
call nssm.exe set hekad AppStopMethodConsole 10000
call nssm.exe set hekad AppStopMethodWindow 1500
call nssm.exe set hekad AppStopMethodThreads 10000
call nssm.exe set hekad AppStdout "%BASE_DIR%\log\hekad.stdout"
call nssm.exe set hekad AppStderr "%BASE_DIR%\log\hekad.stderr"
call nssm.exe start hekad

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants