When executing remote script with SSH:
ssh email@example.com -t sudo /etc/init.d/wildfly start
WildFly not started. If I run
ssh firstname.lastname@example.org -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 email@example.com" 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?