Jump to content

Super Easy Auto-start Dedicated Server Setup


Recommended Posts

We have a couple dedicated servers at BSD, and I thought I'd share how I'm managing one of them.

 

Here's my quick 'n dirty method for doing a dedicated DCS server that requires no manual intervention when the server physically reboots.

 

1. Get the restart on crash program. It's free.

 

https://www.softpedia.com/get/System/File-Management/Restart-on-Crash.shtml

 

 

This handy little program checks for a running process on a time interval. If it's not found running, it starts it.

 

2. Add RoC to your startup programs.

 

3. Here's how you configure it to start DCS with the chosen options. (I use --server --norender --webgui)

 

lukqRlYl.png

 

There's no lua to edit and absolutely nothing to change in the DCS install itself.

 

When the dcs server crashes or stops responding, or when the computer itself starts up, it will detect DCS is not running, and start it. No manual intervention required.

 

It works great.

 

Banner EDForum2020.jpg

Have fun. Don't suck. Kill bad guys. 👍

https://discord.gg/blacksharkden/

Link to comment
Share on other sites

Thanks for sharing this tip .. I will implement it on my server :)

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600X - 32 GB DDR4 2400 - nVidia GTX1070ti - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar - Oculus Rift CV1

Mobile: iPad Pro 12.9" of 256 GB

Link to comment
Share on other sites

If I'm not wrong this method after reboot works only if you have the AutoLogON feature enabled on your windows machine, as general IT tips, it's not recommended for internet exposed machine ;)

But it's a good starting point.

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Link to comment
Share on other sites

If I'm not wrong this method after reboot works only if you have the AutoLogON feature enabled on your windows machine, as general IT tips, it's not recommended for internet exposed machine ;)

But it's a good starting point.

 

 

For some that might be a consideration but all my server does is run DCS so for me that's not a concern.

 

Banner EDForum2020.jpg

Have fun. Don't suck. Kill bad guys. 👍

https://discord.gg/blacksharkden/

Link to comment
Share on other sites

For some that might be a consideration but all my server does is run DCS so for me that's not a concern.

Yeah, it's not a big deal, it's just to remember that it's required for works after reboot :thumbup:

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Link to comment
Share on other sites

  • 1 month later...
  • 11 months later...

:RESTART

tasklist /FI "username eq administrator" | find /C "DCS.exe" > temp.txt

set /p num= < temp.txt

del /F temp.txt

echo %num%

if "%num%" == "0" start /D "F:\DCS DCS Directory" DCS.exe

ping -n 10 -w 60000 127.0.0.1 > temp.txt

del /F temp.txt

goto RESTART

蜂鸟特技飞行表演队 HummingBird Aerobatics Team Video

DCS Server: dcs.cvfly.net -- TS3: ts3.cvfly.net -- QQ群: 42189614

未标题-1.jpg

Link to comment
Share on other sites

Yeah, it's not a big deal, it's just to remember that it's required for works after reboot :thumbup:

Generally that's good advice but is it applicable here?

 

 

Just out of curiosity: have you managed to run the dedicated servers as a service, so without autologon?

Best regards

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...