Permalink
Switch branches/tags
Nothing to show
Commits on May 10, 2013
Commits on May 2, 2013
  1. Initial test suite

    mpalmer committed Apr 29, 2013
    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.
  2. Fix group reading, and make code match docs

    mpalmer committed Apr 29, 2013
    I strongly suspect this is a lurking Ruby 1.9ism.
  3. Fully-qualify our calls to Kernel.system

    mpalmer committed Apr 29, 2013
    This makes mocking work, and it's just good hygiene.
  4. Move scan_services to be a module-level method

    mpalmer committed Apr 29, 2013
    It really has very little to do specifically with the CLI.
  5. More fixes for class-ification

    mpalmer committed Apr 29, 2013
  6. Convert main allah codebase into a class

    mpalmer committed Apr 29, 2013
    This will make unit testing, et al significantly easier
  7. New command: allah smite

    mpalmer committed Apr 29, 2013
    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
Commits on Mar 2, 2013
  1. Changes to work for non-privilaged users

    Sachi King committed Mar 2, 2013
    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 committed Mar 1, 2013
    Not the prettiest, but functional.
    
    RT#327601
Commits on Feb 13, 2013
  1. Fix reading group file

    andrewschleifer committed Feb 13, 2013
    File.read returns a string, and [0] was only getting the first
    character, not the first line.
  2. Remove all calls to Enumerable#first

    mpalmer committed Feb 13, 2013
    Ancient Ruby didn't have .first.
Commits on Oct 22, 2012
  1. Test that we can read the service dir

    mpalmer committed Oct 22, 2012
    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
Commits on Jun 9, 2012
  1. Revert "Add support for multiple groups"

    stevenjm committed Jun 9, 2012
    This reverts commit 126a71f.
    
    This commit broke most of allah's functions.
Commits on May 29, 2012
  1. Add support for multiple groups

    mpalmer committed May 29, 2012
Commits on May 24, 2012
  1. Don't look for svscan in procfs

    OhNoMoreGit committed May 24, 2012
    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

    OhNoMoreGit committed May 1, 2012
    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.
Commits on Apr 23, 2012
Commits on Apr 20, 2012
  1. Sort output from "allah log"

    OhNoMoreGit committed Feb 27, 2012
  2. Add Puppet banner

    OhNoMoreGit committed Feb 27, 2012
  3. Wrong variable name

    OhNoMoreGit committed Feb 7, 2012
  4. Allah RA needs to distinguish "down" from "failed"

    OhNoMoreGit committed Feb 2, 2012
    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.
  5. Allah has exit status 127 on "no such task"

    OhNoMoreGit committed Feb 2, 2012
    Means the Allah RA can return OCF_ERR_CONFIGURED in this instance.