Jump to content

I have a Valheim dedicated server running on a PC in a remote location. I have set power on in the bios so the pc will start when ac power is restored, setup dynu and the dedicated server to run at startup, so they will run without me needing to login.

 

This all works fine when the pc is restarted, I'm able to get the IP updates and the server works correctly, but if I unplug the pc to simulate a power cut, the pc starts normally and I get the IP updates from dynu, so that is running correctly, but the server doesn't starts.

 

Anyone has any ideas as to what might be going wrong?

 

 

Link to comment
https://linustechtips.com/topic/1316764-windows-10-startup-programs/
Share on other sites

Link to post
Share on other sites

Windows will not automatically sign into a user account unless you tell it to, which will prevent startup applications from running. I would suggest either using NSSM to create a service that runs before a user logs in, or use Autologon from https://docs.microsoft.com/en-us/sysinternals/downloads/autologon to kill the login screen.

Make sure to quote me or use @PorkishPig to notify me that you replied!

 

 

Desktop

CPU - Ryzen 9 3900X | Cooler - Noctua NH-D15 | Motherboard - ASUS TUF X570-PLUS RAM - Corsair Vengeance LPX DDR4-3200 32GB Case - Meshify C

GPU - RTX 3080 FE PSU - Straight Power 11 850W Platinum Storage - 980 PRO 1TB, 960 EVO 500GB, S31 1TB, MX500 500GB | OS - Windows 11 Pro

 

Homelab

CPU - Core i5-11400 | Cooler - Noctua NH-U12S | Motherboard - ASRock Z590M-ITX RAM - G.Skill Ripjaws V DDR4-3600 32GB (2x16)  | Case - Node 304

PSU - EVGA B3 650W | Storage - 860 EVO 256GB, Sabrent Rocket 4.0 1TB, WD Red 4TB (x6 in RAIDZ1 w/ LSI 9207-8i) | OS - TrueNAS Scale (Debian)

Link to post
Share on other sites

2 minutes ago, PorkishPig said:

Windows will not automatically sign into a user account unless you tell it to, which will prevent startup applications from running. I would suggest either using NSSM to create a service that runs before a user logs in, or use Autologon from https://docs.microsoft.com/en-us/sysinternals/downloads/autologon to kill the login screen.

 

Both programs do start automatically when nobody is logged in, I have set them to do so in in Task Scheduler and given the programs the login credentials. They both work on restarts, but only dynu runs automatically after the ac is restored. 

Link to post
Share on other sites

6 minutes ago, Shlouski said:

 

Both programs do start automatically when nobody is logged in, I have set them to do so in in Task Scheduler and given the programs the login credentials. They both work on restarts, but only dynu runs automatically after the ac is restored. 

Considering that you're working with a Batch file that interacts with other files, you may need to define the "start in" directory alongside with the script location in Task Scheduler if you haven't already.

Make sure to quote me or use @PorkishPig to notify me that you replied!

 

 

Desktop

CPU - Ryzen 9 3900X | Cooler - Noctua NH-D15 | Motherboard - ASUS TUF X570-PLUS RAM - Corsair Vengeance LPX DDR4-3200 32GB Case - Meshify C

GPU - RTX 3080 FE PSU - Straight Power 11 850W Platinum Storage - 980 PRO 1TB, 960 EVO 500GB, S31 1TB, MX500 500GB | OS - Windows 11 Pro

 

Homelab

CPU - Core i5-11400 | Cooler - Noctua NH-U12S | Motherboard - ASRock Z590M-ITX RAM - G.Skill Ripjaws V DDR4-3600 32GB (2x16)  | Case - Node 304

PSU - EVGA B3 650W | Storage - 860 EVO 256GB, Sabrent Rocket 4.0 1TB, WD Red 4TB (x6 in RAIDZ1 w/ LSI 9207-8i) | OS - TrueNAS Scale (Debian)

Link to post
Share on other sites

6 minutes ago, PorkishPig said:

Considering that you're working with a Batch file that interacts with files, you may need to define the "start in" directory alongside with the script location in Task Scheduler if you haven't already.

 

I tried that, but I left the Program/script directory the same and this didn't work, I guess I need to give it the directory of the exe, but the problem with that is steam starts up and then I cant play the game because I'm already playing the dedicated server.

 

I guess my only option is to kill the login screen.

 

Thanks for the help.

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×