NodeMC / CORE

Core of NodeMC, including stock dashboard and setup files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Not start server at startup

opened this issue · comments

Is it possible to have a option not to start the server at startup? Such that I can toggle it on when i want to play with my friend and turn it off when not needed.

If it's already started on my server it takes like 40% cpu idle (the jar that is) which is twice the amount all the other stuff use combined :-) And after every reboot I forget to stop it...

And did I read it correctly there a rest api/json call, or sometime I can call from my home domoticz to start or stop it? That would be sweet!

You can indeed - see Controlling Your Server on the docs https://nodemc.space/index.php/docs/getting-started I will implement a toggle for this in v6 however.

That would be great...

I tried it... with the curl commando's, starting/stopping works sometimes.
The problem seems to that curl is stuck forever waiting, like if the
connection is not closed when finised?

It still works but i can not script it if it hangs waiting for this
commando to be finished never returning to the shell prompt:

curl --request POST 'http://127.0.0.1:3000/startserver' --data 'apikey=APIKEYHERE'

but the option would be very nice, no need for script :-)

after 10 minutes

curl: (52) Empty reply from server

On Thu, May 12, 2016 at 3:25 PM, Gabriel Simmer notifications@github.com
wrote:

You can indeed - see Controlling Your Server on the docs
https://nodemc.space/index.php/docs/getting-started I will implement a
toggle for this in v6 however.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#19 (comment)

Will look into this, thanks.

If thats master branch it never uses res to respond back over the TCP
socket (fixed in v6)