i have an ubuntu-server box to which i connect via ssh.
now when i start a service (in this case teamcity) i would like to keep it running after the ssh session ends.
right now the service stops as soon as i disconnect.
i am starting the service using:
sudo service teamcity start
and the service script looks like this:
#! /bin/sh
# /etc/init.d/teamcity
#
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Starting script teamcity "
/home/m/TeamCity/bin/runAll.sh start
;;
stop)
echo "Stopping script teamcity"
/home/m/TeamCity/bin/runAll.sh stop
;;
*)
echo "Usage: /etc/init.d/teamcity {start|stop}"
exit 1
;;
esac
exit 0