Running CTP as a Linux Service

From MircWiki
Revision as of 11:30, 12 September 2011 by Tim phillips (Talk | contribs)

Jump to: navigation, search

1 Suggestion

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 <>"

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


3 Commands to control the CTP service

To start CTP (it will start automatically when the machine boots)

start CTP

To stop CTP:

stop CTP

To check if CTP is running:

status CTP

To restart CTP:

restart CTP
Any questions or comments please email me at - Tim Phillips.