nafeasonto
Refugee
I would liek if I actually have to resart my Windows VM, then the server can start as a service. Usually BAT files don't play nice with a Windows Service, anyone figure out a way to do it?
What's the purpose of having the server run as a service?
If the purpose is to make the server start without a user logging in to windows (which doesn't work with "autostart" as this requires a user to log in) you can configure this with Win10 in the task-scheduler. There is an option "run indepentent of user login" (freely translated).
If you need it as a service for other reasons, google "runasservice". That allows you to basically run every program as a service. Of course programs that require user interaction will get stuck with that, but the 7d2d server should run fine with this.
I see no reason why it should not. But i didn't test it in person.I was just curious if it was even realistic to run it under a service.
As i said, no need for a workaround, Windows can launch programs without a user logon and without needing them to be run as a service. I'm pretty sure Windows 2019 Server can also do it.I can do an easy work around, for an autologin/shell:startup/then auto lock.
It's easier if I need to restart the server itself, so when windows comes back it auto starts the server. I already found my workaround. You can administer the server easily through TELNET/Putty. So the console is really not necessary. But thanks for the help!I see no reason why it should not. But i didn't test it in person.
As said, problems occur usually if the application needs userinteraction or the ui itself is badly involved in it's internal programming, then running it without an ui may cause problems.
Since the server has no user interaction and no user interface (i assume it only outputs text to std:ut), there should be no problem.
As i said, no need for a workaround, Windows can launch programs without a user logon and without needing them to be run as a service. I'm pretty sure Windows 2019 Server can also do it.
Still remaining question: Why? Just theoretical idea with no practice relevance?
Do you even read my posts?It's easier if I need to restart the server itself, so when windows comes back it auto starts the server.
Dude... I am a Network Engineer. I am well aware what RDP is and Windows Task Scheduler. You aren't understanding what I am saying here. I am good.Do you even read my posts?
The windows task-scheduler allows you to autostart programs without userlogon and no runasservice-workarounds. It is exactly meant for such use cases.
You can also connect to your server via RDP and then just doubleclick the 7d2d-server link previously placed on your desktop... but hmm... that's not really like someone wants a server to run. There are many ways how to remotly access a server. You could have also installed VNC or TeamViewer, or even could probably use Intel AMT to gain low level access remotely. All of them are pretty common usecases for any kind of servers.
So basically your question was how to start a 7d2d server on a computer you have no monitor and keyboard attached to?
I see that you’re good, but I am curious...I run my dedicated server on a Dell PowerEdge under an ESXI VM, with Windows 2019. I was just curious if it was even realistic to run it under a service. I can do an easy work around, for an autologin/shell:startup/then auto lock.
I was just curious if the server minds running as a service. I am well aware how to create a Service under windows, or using NSSM to do things easier. Sorry I didn't make myself clearer in my initial message.