Running CTP as a Linux Service: Difference between revisions
Jump to navigation
Jump to search
Tim phillips (talk | contribs) No edit summary |
Tim phillips (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
This is a small part of what the [[Install MIRC Zn on Ubuntu Linux | === Important === | ||
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you. | |||
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page. | |||
=== Using an UpStart Script === | === Using an UpStart Script === | ||
| Line 11: | Line 14: | ||
Cut and paste the below code | Cut and paste the below code | ||
description " | description "CTP Service on Linux" | ||
author "Tim Phillips <timothy.john.phillips@gmail.com>" | author "Tim Phillips <timothy.john.phillips@gmail.com>" | ||
| Line 29: | Line 32: | ||
into a file named | into a file named | ||
/etc/init/ | /etc/init/CTP.conf | ||
Start the service by typing | Start the service by typing | ||
start | start CTP | ||
This will also start automatically when the machine boots | This will also start automatically when the machine boots | ||
<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 03:00, 10 September 2011
Important
- This is a small part of what the script at Install MIRC Zn on Ubuntu Linux will do automatically for you.
- If you want to install MIRC on a Linux machine it is recommended you head the Install MIRC Zn on Ubuntu Linux page.
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
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 respawn expect fork script cd /usr/share/CTP/ java -jar ./CTP-runner.jar end script
into a file named
/etc/init/CTP.conf
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.