[gist] [bash] Application Administration Bash Script

Created a bash script that simplifies application administration to some degree for us since we operate CM System from a “normal” linux user that doesn’t have access to such commands as /sbin/service. You can find the bash script at https://gist.github.com/rileyw/5165772. Feel free to update/extend as desired.

This file can be saved to your the system hosting the application, then sourced by editing your ~/.bashrc or ~/.bash_profile file.

Example code for sourcing the file is provided below:

if [ -f ~/percussion_admin.sh ]; then
        .~/percussion_admin.sh
fi

The command is called cmSystem. cmSystem requires the following arguments:

[ul]
[li]{start|stop|restart}[/li][li]/path/to/Rhythmyx[/li][/ul]

Working on adding a log argument that will open the log file for you.