Start jade via batch script as service on windows server 2012 amazon ec2 instance
Posted
by
E. Lüders
on Super User
See other posts from Super User
or by E. Lüders
Published on 2013-10-26T14:50:40Z
Indexed on
2013/10/26
15:57 UTC
Read the original article
Hit count: 282
I would like to start the Jade agent platform with a batch script on an windows server ec2 instance as a service. The reason for this is, that I want to start jade automatically at system startup.
For creating the service I use nssm. However so far its working fine and the service is created. When I want to start the service I get an error message:
Windows could not start the NAME service on Local Computer. The service did not return an error...
My batch file contains only one line:
java jade.Boot -platform-id P%random%
If i execute the script via cmd it works fine.
Anybody got an idea why this is not working if I start the batch script as a service?
© Super User or respective owner