Teabag: Difference between revisions
Jump to navigation
Jump to search
CoGe dev server utility script |
No edit summary |
||
Line 3: | Line 3: | ||
Teabag is a bash script that manages CoGe services abstracting away the need for multiple, messy CLI calls. | Teabag is a bash script that manages CoGe services abstracting away the need for multiple, messy CLI calls. | ||
== Installation == | == Installation == | ||
Teabag comes pre-installed on the coge dev server, but if you don't have access to this fine machine never fear: | Teabag comes pre-installed on the coge dev server, but if you don't have access to this fine machine never fear: | ||
#<code>mv <the teabag script> /usr/local/bin/teabag</code> | #<code>mv <the teabag script> /usr/local/bin/teabag</code> | ||
#<code>sudo chmod 755 teabag</code> | #<code>sudo chmod 755 teabag</code> | ||
=== Configuration === | |||
Configuration is as simple as changing some config variables in the script. | |||
#Open the teabag script in your favorite text editor and change the configuration settings at the top. | |||
<code> | |||
################################## | |||
# Configuration Settings # | |||
################################## | |||
GREENTEA_DIR='<Greentea's Root Path>' | |||
GREENTEA_LOG_FILE='$GREENTEA_DIR/logs/error.log' | |||
URL='geco.iplantc.org/analytics' | |||
FONT='invita' | |||
</code> | |||
== Usage == | == Usage == |
Revision as of 19:56, 22 February 2013
Teabag - CoGe's Utility Belt
Teabag is a bash script that manages CoGe services abstracting away the need for multiple, messy CLI calls.
Installation
Teabag comes pre-installed on the coge dev server, but if you don't have access to this fine machine never fear:
mv <the teabag script> /usr/local/bin/teabag
sudo chmod 755 teabag
Configuration
Configuration is as simple as changing some config variables in the script.
- Open the teabag script in your favorite text editor and change the configuration settings at the top.
##################################
# Configuration Settings #
##################################
GREENTEA_DIR='<Greentea's Root Path>'
GREENTEA_LOG_FILE='$GREENTEA_DIR/logs/error.log'
URL='geco.iplantc.org/analytics'
FONT='invita'
Usage
To start up all the currently configured processes:
teabag
To start specific processes:
teabag infuse <process>
To check which processes Teabag is currently configured for:
teabag processes
To check the status of all currently configured proccesses:
teabag status
To kill all running processes:
teabag kill
To kill specific processes:
teabag kill <process>
To list all usable commands:
teabag usage
To restart the apache server alone:
teabag apache
For help with any commands:
teabag help <command>