How to execute a command as a service in linux

view full story

http://unix.stackexchange.com – I am executing a command from linux to establish a connection between linux and a cloudbees machine how could i run the command as a service so that the connection stays disconnected. The command is java -jar /home/ubuntu/workspaceJenkins/jenkins-cli.jar -s https://** -i /home/ubuntu/.ssh/id_rsa_new customer-managed-slave -description TESTS -fsroot /home/ubuntu/Jenkins -labels test -name TESTS (HowTos)