Forum

Hiawatha as a Windows Service

Fred
1 June 2016, 17:22
Hi Hugo,

As per documentation I ran
cygrunsrv.exe -I hiawatha -d "Hiawatha webserver" -f "Secure and advanced webserver" -p "<HIAWATHA_INSTALL_DIR>\program\hiawatha.exe" -a "-d"
but I when I tried to start the service I get the following error:
The Hiawatha webserver service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

I looked at the windows even viewer but nothing in teresting that can help in there..

Can you help?
Hugo Leisink
1 June 2016, 22:49
You have to replace <HIAWATHA_INSTALL_DIR> with the path of where Hiawatha is installed.
Fred
3 June 2016, 09:54
Hi Hugo,
Yes I did that..
Was been lazy and sopy the doc.
Hugo Leisink
4 June 2016, 14:58
Did you start the CMD window, from which you ran that command, as Administrator?
Fred
4 June 2016, 23:17
Yes I did run CMD as administrator.
I tried on 2 laptops and I have the same error on both.
Hugo Leisink
6 June 2016, 21:34
Does it work when you run the Service.bat script as Administrator?
Fred
6 June 2016, 23:59
Hi Hugo,

Thank you for getting back to me....
Yes all work fine when using the script that come in the zip file.
Running Service.bat script as Administrator is all good.
I just want Hiawatha to start my my computer start
Fred
11 June 2016, 11:18
Hi Hugo,
Can you please advise any further. On this matter?
I'm running windows 7 and windows 10 laptop
Hugo Leisink
11 June 2016, 11:22
It's not working? In a previous post, you said 'Running Service.bat script as Administrator is all good.'. I understood that it's all working now, but apparently not.

If you run the Service.bat script as Administrator and select [I]nstall, what happens then?
This topic has been closed.