amazon web services startup
How should I script my application(a C# console application), to run at the virtual machine start-up?
Should I use shell scripts or something else?
What should the structure of the script file be like? 开发者_StackOverflow中文版
Thanks, Catalin
Just copy you exe file in the Startup folder (Start->All Programs->Startup, right click->open)
You might try using SrvStart. SrvStart allows you to run any application as a Windows Service. While the vast majority of applications are not suited for this type of deployment (i.e. Notepad, Microsoft Word, etc.), there are lots of utilities which can run seamlessly as a background service. By interfacing with the Windows Service Manager, SrvStart “interprets” the Operating System commands, such as start (open) and stop (close), and sends them to the target application which doesn’t know the difference.
Here is an article that might be a useful starting place: http://www.howtogeek.com/50786/using-srvstart-to-run-any-application-as-a-windows-service/
精彩评论