Difference between revisions of "Running CTP as a Linux Service"

From MircWiki
Jump to navigation Jump to search
Line 28: Line 28:
  java -jar ./CTP-runner.jar
  java -jar ./CTP-runner.jar
  end script
  end script
into a file named
into a file named

Revision as of 03:01, 10 September 2011

1 Important

2 Using an UpStart Script

Ubuntu and many other Linux distros use UpStart to run services. The below example assumes CTP is installed at


You can modify it to suit a different locations.

Cut and paste the below code

description "CTP Service on Linux"
author "Tim Phillips <timothy.john.phillips@gmail.com>"

start on (local-filesystems and net-device-up IFACE!=lo)
stop on stopping network-services


expect fork

cd /usr/share/CTP/
java -jar ./CTP-runner.jar
end script

into a file named


Start the service by typing

start CTP

This will also start automatically when the machine boots

Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.