I have a Java application which should run on a server machine in the background (the application can be started by a command without GUI). The problem is: When I log off from the server, the application gets killed. I'm looking for something similar like nohup
under Linux. I found some solutions, but I'm unsure, what is the best for my situation (Windows Server 2003, Java Application run from BAT-Skript, restart after booting the machine)? What are the pros and cons of the solutions?
- psexec: Do the process really need to run under the SYSTEM account?
- Combination of
instsrv
andsrvany
: But srvany should should never be used in a production environment - I have started the application with the scheduled tasks with the option run as
NT AUTHORITY\SYSTEM
. But after log off, the application was still killed. Can I get this working? - The DOS Task Scheduler AT command