Launch a Tornado App on Windows Server Startup

Alessandro
Dec 19, 2020

There are a few ways, a solid way to start this is to create a bat file and create a task that is execute when the Windows server starts, the following command will run a bat file location in the C:\dev folder as a task during startup:

schtasks.exe /create /tn “Tornado App Server” /ru SYSTEM /Sc ONSTART /tr “C:\dev\tornado_startup.bat”

Creating the task is not always an option, as IT might have locked down the server. Another way to achieve the start up functionality is by doing the following:

The shell:startup command will bring a folder, where you can place your script in and it gets executed during start up.

For a sample project containing the script take a look at my git repo.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Alessandro
Alessandro

Written by Alessandro

Full mobile stack developer, researcher, simulation software developer, and parent.

No responses yet

Write a response