When executing remote script with SSH:
ssh user@192.168.0.10 -t sudo /etc/init.d/wildfly start
WildFly not started. If I run
ssh user@192.168.0.10 -t /home/user/my.sh
my.sh:
!#/bin/bash
sudo /etc/init.d/wildfly start
sleep 10
WildFly starting and after 10 sec, when ssh connection closed WF stopped. If I connect "manually" with "ssh user@192.168.0.10" and then type in console "sudo /etc/init.d/wildfly start" - no problem.
init.d/wildfly: http://pastebin.com/UDxmEYRZ
How I can start WildFly without manually enter each command in console?