Difference between revisions of "Running CTP as a Linux Service"
Jump to navigation
Jump to search
Tim phillips (talk | contribs) |
Tim phillips (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | This is a small part of what the MIRC-Zn installation on Linux script will do automatically for you | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | + | === Using an UpStart Script === |
+ | Ubuntu and many other Linux distros use UpStart to run services. | ||
+ | The below example assumes CTP is installed at | ||
− | + | /usr/share/CTP/ | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | You can modify it to suit a different locations. | |
+ | |||
+ | Cut and paste the below code into a file named | ||
+ | |||
+ | /etc/init/MIRC-Zn.conf | ||
+ | |||
+ | The code | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
description "MIRC Zn (CTP plugin not Tomcat)" | description "MIRC Zn (CTP plugin not Tomcat)" | ||
author "Tim Phillips <timothy.john.phillips@gmail.com>" | author "Tim Phillips <timothy.john.phillips@gmail.com>" | ||
Line 188: | Line 29: | ||
java -jar ./CTP-runner.jar | java -jar ./CTP-runner.jar | ||
end script | end script | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div> | <div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div> |
Revision as of 02:56, 10 September 2011
This is a small part of what the MIRC-Zn installation on Linux script will do automatically for you
Using an UpStart Script
Ubuntu and many other Linux distros use UpStart to run services. The below example assumes CTP is installed at
/usr/share/CTP/
You can modify it to suit a different locations.
Cut and paste the below code into a file named
/etc/init/MIRC-Zn.conf
The code
description "MIRC Zn (CTP plugin not Tomcat)" author "Tim Phillips <timothy.john.phillips@gmail.com>" start on (local-filesystems and net-device-up IFACE!=lo) stop on stopping network-services respawn expect fork script cd /usr/share/CTP/ java -jar ./CTP-runner.jar end script
Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.