Re: [ansible-project] I can't execute java program

2016-09-28 Thread Dick Davies
I'd avoid nohup like the plague. Why not just write a small upstart or systemd script and run your java app as a service: task? On 27 September 2016 at 09:07, 刘松 wrote: > Hi, >May I ask for execute java program with ansible? >I execute a java program (spring boot

[ansible-project] I can't execute java program

2016-09-27 Thread 刘松
Hi, May I ask for execute java program with ansible? I execute a java program (spring boot project, a jar package for java web site) ansible ofbiz1 -m shell -a "chdir=/opt/CassEC-OrderSupports nohup java -jar product.jar &", it echo success ,but in fact,it do nothing! the java program