Incorporate Will's Awesome Stuff #1

Merged
merged 11 commits into from Mar 5, 2014
Commits on Mar 4, 2014
  1. Minor Improvements

    Will Ashworth committed Mar 4, 2014
    - rename load watch script for cPanel to match README
Commits on Mar 5, 2014
  1. Clean Up + Basic Enhancements

    Will Ashworth committed Mar 5, 2014
    - added disk usage
    - general comment clean-up
    - organization of file
  2. Auto-Delete logic

    Will Ashworth committed Mar 5, 2014
    - added initial auto delete logic
    - allows user to specify age before delete occurs
    - does not touch the `checklog` file in any way
    - removes `load watch.***` files older than specified age
  3. Major Changes

    Will Ashworth committed Mar 5, 2014
    - restructured logic in large part
    - added conditions to support parameters
    - added `-x` or `--force` options added to allow you to force it to run (regardless of the current load threshold)
    - added `-d` or `--dir` options added to allow you to override the $DIR variable
    - added `-e` or `--email` options added to allow you to override the $EMAIL variable
    - added `-f` or `--file` options added to allow you to override the $FILE variable
    - added `-r` or `--remove` options added to allow you to override the $REMOVE variable, changing your `remove after x days` logic on the fly
    - added `-t` or `--threshold` options added to allow you to override the $THRESH variable
    - added `-h` or `--help` options, allowing help and usage information to display to the user
    - various other clean-up
  4. Bug Fix

    Will Ashworth committed Mar 5, 2014
    - fixed high level if() statement syntax (it was off a bit)
  5. Bug Fix

    Will Ashworth committed Mar 5, 2014
    Still attempting to get this error to leave...
    
    root@hostname [~/loadwatch]# sh bin/loadwatch_cpanel.sh
    bin/loadwatch_cpanel.sh: line 68: [: missing `]'
    bin/loadwatch_cpanel.sh: line 68: [: =: unary operator expected
  6. Bug fix

    Will Ashworth committed Mar 5, 2014
    - Another attempt
  7. Bug fix

    Will Ashworth committed Mar 5, 2014
  8. Bug Fix

    Will Ashworth committed Mar 5, 2014
    - fixed if() statement finally (I think)
  9. Bug fix

    Will Ashworth committed Mar 5, 2014
    - fixed if() statement. it's tested and working now.
  10. Bug fix

    Will Ashworth committed Mar 5, 2014