When executing remote script with SSH:
ssh firstname.lastname@example.org -t sudo /etc/init.d/wildfly start
WildFly not started. If I run
ssh email@example.com -t /home/user/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 firstname.lastname@example.org" and then type in console "sudo /etc/init.d/wildfly start" - no problem.
How I can start WildFly without manually enter each command in console?