-
Notifications
You must be signed in to change notification settings - Fork 872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows service cannot be stopped #9211
Comments
Update: here is the output from the logs orient-server.log.0 Update 2: I found an issue from 2016 that involves adding a password parameter, but I see no relevance with stopping the service. |
Hi @tomazk8 seems yes that you have to pass the root password parameter to stop the server.
Let me know if this works i will update the docs Thanks |
I have updated my InstallService.bat as in issue 6552 with StopParams. When I stop the service using "//SS -p=[password]" and it works. But... password is not really needed, because even without root password, the service eventually stops (although after a long timeout). It's not like stopping of the service can be aborted. One question. I am planing to run my ASP.NET Core 3.1 as Windows Service and I was wondering, if it's possible to run OrientDB inside my service? I see that prunsrv.exe actually runs console host (conhost.exe) sub-process to wrap OrientDB with it. So I guess I could do the same thing in my service the same way prunsrv does it right? Then I wouldn't need two Windows Services. If this is doable, could someone guide me how to do this? Thanks! |
OrientDB Version: 3.0.30 community
Java Version: 1.8.0_211
OS: Windows 10 Pro
I created Windows Service as specified on OrientDB website and works. Service is installed, I started it and OrientDB Studio works. But when I try to stop it using Windows Services or using OrientDBGraph.exe //SS, it's just waiting and waiting. In Services I see the state "stopping" but only after some 5min, state finally switches to stopped state. Note that I am running an empty DB server with only the original demodb. I did not create any new database and I did not execute any query.
I guess 5min is some timeout. Is OrientDB maybe waiting for some input in the same way, when I run it as a console application and stop it, where at the end it is asking "Terminate batch job (Y/N)?". Console Application stops immediately after I press Y.
The text was updated successfully, but these errors were encountered: