Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on May 10, 2013
  1. @mpalmer
Commits on May 2, 2013
  1. @mpalmer
  2. @mpalmer

    Initial test suite

    mpalmer authored
    Only covers about 0.5% of the codebase, but it's better than what we had before.  It's
    already caught one bug (the group reading bug fixed in the previous commit) so it's
    definitely been worth it.
  3. @mpalmer

    Fix group reading, and make code match docs

    mpalmer authored
    I strongly suspect this is a lurking Ruby 1.9ism.
  4. @mpalmer

    Fully-qualify our calls to Kernel.system

    mpalmer authored
    This makes mocking work, and it's just good hygiene.
  5. @mpalmer

    Move scan_services to be a module-level method

    mpalmer authored
    It really has very little to do specifically with the CLI.
  6. @mpalmer

    More fixes for class-ification

    mpalmer authored
  7. @mpalmer

    Convert main allah codebase into a class

    mpalmer authored
    This will make unit testing, et al significantly easier
  8. @mpalmer
  9. @mpalmer

    New command: allah smite

    mpalmer authored
    Tries to down the service multiple times, but if it doesn't play ball, whack it
    solidly with a hammer.
Commits on Mar 17, 2013
  1. Add QUIT, USR1 and USR2 to allah's known signals and enhance signal-h…

    Steven McDonald authored
    …andling slightly
Commits on Mar 2, 2013
  1. Changes to work for non-privilaged users

    Sachi King authored
    root still takes the easy ls way.  Else we search sudo -l for services a user is allowed to work with.
    This is better than tab throwing permission denied or whatever it would.
    
    RT#327601
Commits on Mar 1, 2013
  1. Add complition scripts for allah command

    Sachi King authored
    Not the prettiest, but functional.
    
    RT#327601
Commits on Feb 13, 2013
  1. @andrewschleifer

    Fix reading group file

    andrewschleifer authored
    File.read returns a string, and [0] was only getting the first
    character, not the first line.
  2. @mpalmer

    Remove all calls to Enumerable#first

    mpalmer authored
    Ancient Ruby didn't have .first.
  3. @mpalmer
Commits on Oct 22, 2012
  1. @mpalmer

    Test that we can read the service dir

    mpalmer authored
    If we can't read it, exit with an error, since we won't be able to scan anything
    anyway.
Commits on Jul 12, 2012
  1. @lachlancooper
Commits on Jun 9, 2012
  1. Revert "Add support for multiple groups"

    Steven McDonald authored
    This reverts commit 126a71f.
    
    This commit broke most of allah's functions.
Commits on May 29, 2012
  1. @mpalmer
Commits on May 24, 2012
  1. Don't look for svscan in procfs

    Michael Chapman authored
    Looking for an executable names .../svscan is fragile: on Linux, if the
    executable has been replaced (say, by an upgrade or by prelink), the exe
    entry will be suffixed with " (deleted)". It may also erroneously match
    on some other executable that just happens to be named svscan.
    
    Instead, simply assume services are configured in /etc/service/. This
    can be overridden with the ALLAH_SERVICE_DIR environment variable.
Commits on May 1, 2012
  1. Eliminate a race condition while iterating procfs

    Michael Chapman authored
    There's still the small issue of daemontools being stopped just before
    allah has a chance to poke it, however that can not be easily solved.
    "svc" and "svstat" simply exit with status 0 if "supervise" is not
    running.
  2. Exit with RC_TEMP if exception is thrown

    Michael Chapman authored
Commits on Apr 23, 2012
  1. @mpalmer
Commits on Apr 20, 2012
  1. Remove Anchor-specific Puppet banner

    Michael Chapman authored
  2. @lachlancooper

    Use BASENAME instead of god in the help text

    lachlancooper authored Michael Chapman committed
  3. Sort output from "allah log"

    Michael Chapman authored
  4. Define service and group sort ordering

    Michael Chapman authored
  5. Handle the "ungrouped" group name in one place

    Michael Chapman authored
  6. "allah log" must follow logfile by name

    Michael Chapman authored
  7. Add Puppet banner

    Michael Chapman authored
  8. svscan missing is a temporary error

    Michael Chapman authored
  9. Wrong variable name

    Michael Chapman authored
  10. Allah RA needs to distinguish "down" from "failed"

    Michael Chapman authored
    Since a stop action must wait until "failed" has turned into "down".
    
    God mode essentially uses RC_OK and RC_ERR exclusively (except for the
    "count of unmonitored tasks in group" bit when checking the status of a
    group).
    
    Allah mode uses:
    
    - RC_UP    (== RC_OK)  to indicate that *all* selected tasks are up
    - RC_DOWN  (== RC_ERR) to indicate that *all* selected tasks are down
    - RC_OTHER, to indicate any other set of statuses
    
    That way the RA's start action can wait for RC_UP, the RA's stop
    action can wait for RC_DOWN, and both actions will do the right thing
    should a task be marked as failed.
  11. Allah has exit status 127 on "no such task"

    Michael Chapman authored
    Means the Allah RA can return OCF_ERR_CONFIGURED in this instance.
Something went wrong with that request. Please try again.