Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Nov 30, 2012
  1. @dougm

    Fix group/all restarts with process dependencies

    dougm committed
    - widen the scope of visitor table so processes dependencies are not
      restarted more than once during a group control action
    - visitor table is now passed as a param (via type ControlAction)
      rather than shared (was a member of type Control)
    - add integration tests
    Change-Id: I58c0e167f70208ce07b5600e228227f20366adc7
  2. @dougm

    Remove Process.Detached option

    dougm committed
    The Detached option was more useful when we did the double-fork self-detaching.
    Since removing the double-fork, this option is less useful and will likely lead
    to more confusion than convenience, where convenience was just gonit writing the
    pid file.
    With this option removed, processes are required to write their own pid file.
    Change-Id: Id28025bfe3c58ed376f352f0d2f258b2792daa9a
Commits on Nov 19, 2012
  1. @dougm

    Use log.Panic instead of log.Fatal in tests

    dougm committed
    Change-Id: I3bd7ea9ab10802ee0391c3ae917dd1c8eb3ff4bd
Commits on Nov 16, 2012
  1. @dougm

    Initial process recovery implementation

    dougm committed
    - add process watcher + integration test
    Change-Id: Ia45b93eeae708d71ce35db035656b7a73c36c259
Commits on Nov 14, 2012
  1. @dougm

    Avoid concurrent control actions for a process

    dougm committed
    - api integration test
    - ProcessState.Monitor defaults to MONITOR_INIT if Process.MonitorMode == "active"
    - control: monitorUnset before calling StopProcess
    - control: add monitorActivate helper
    - test/helper enhancements
    Change-Id: I6ab1d31653c7ae0107edd8de29eb155ae939ad61
Commits on Nov 1, 2012
  1. @dougm

    test fixes

    dougm committed
    - fix log_test when run with: sudo -E go test
    - fix helper.NewTestProcess BuildBin path
    Change-Id: I7249ebdeb955df5bd3b17720bb6e947a86c5d98e
Commits on Oct 31, 2012
  1. @lisbakke

    Initial integration tests.

    lisbakke committed
    Adds helper functions to start/stop gonit, run gonit commands and
    assert the existence of processes and log messages.
    Change-Id: I54857ace9fef23973d2cec3aaa675b1f5611e122
Commits on Oct 18, 2012
  1. @dougm

    migrate from 'assert' to 'gocheck' for unit tests

    dougm committed
    Change-Id: I26c47429b7f83d22bd7893d82c00a07115e8066f
Commits on Oct 17, 2012
  1. @dougm

    Integrate gosteno logging

    dougm committed
    Change-Id: Idd9b19362566cbe42349f0e61f92a4f80504fada
  2. @lisbakke

    Persist gonit states.

    lisbakke committed
    1) Fill out 'gonit reload' command that reloads configs.
       The API user is responsible for stopping/starting processes
       before/after 'gonit reload'. A config will only be reloaded if
       it is a valid config.
    2) Persist ProcessState structs after start/monitor/unmonitor.
    3) Load persisted state before starting a process.
    Change-Id: Iaac0b81eda1ccac127059f8633a65a9b9eeac526
Commits on Sep 27, 2012
  1. @dougm

    Add gonit daemon options to ConfigManager Settings

    dougm committed
    Change-Id: Ie16a3f3bb3c59de22ca66fa205a02ed88a0b2552
Commits on Sep 19, 2012
  1. @lisbakke

    Start/stop/restart actions and main integration.

    lisbakke committed
    This change adds the ability to use start/stop/restart actions in
    event rules. It also integrates the eventmonitor into the main code,
    so it runs when gonit is running.
    Change-Id: I617024ccbc83b02e0fb80c6eb34a7c4d0eac46c5
Commits on Sep 12, 2012
  1. @dougm

    Fix possible deadlock/panic when detaching a process

    dougm committed
    Remove fork() call which often caused deadlock on linux and
    panic on macosx.  We now reap any process we start via Wait()
    in a go routine for those who do not self detach.
    Change-Id: Ifa526561f8c385bc8d000310e0445ba87bf56bfe
Commits on Sep 5, 2012
  1. @lisbakke

    Merge "Adding duration support to eventmanager."

    lisbakke committed with Gerrit Code Review
Commits on Sep 4, 2012
  1. @lisbakke

    Adding duration support to eventmanager.

    lisbakke committed
    Also turn all resources to uint64.
    Change-Id: I229d526a57c16a9c6660171670b595ea2143caf1
Commits on Aug 29, 2012
  1. @dougm

    workaround possible test hangs

    dougm committed
    Change-Id: I3ce6ce0374fb86933148ef4cdeb5b461d4a32b2d
Commits on Aug 9, 2012
  1. @dougm

    Fold Daemon type into Process type

    dougm committed
    The initial pass of connecting ConfigManager / Process type to Daemon
    just added Daemon as an anonymous field in Process and removed dup
    fields.  However, yaml/json marshalling ignores anonymous fields.
    Don't need the two types anyhow, so this simplifies things in general.
    This change is a large diff, but for the most part is just a rename of
    Daemon to Process (for types and variables)
    Change-Id: I04e88e9bd3faf61bde1b6a4c9805e3eb679aca71
Commits on Aug 6, 2012
  1. @lisbakke

    Cache values and add settings parsing.

    lisbakke committed
    - Cache resource values so they are not pulled 2x in the same loop.
    - Make config manager parse a settings file.
    - Create unix socket setting.
    - Write more tests for configmanager.
    Change-Id: I342667b8c7c462173bb567fa3670b23507ef4949
Commits on Aug 1, 2012
  1. @dougm

    Move shared funcs from _test.go to helper.go

    dougm committed
    Some _test.go files use funcs defined in other _test.go files.
    This was fine for 'go test', but not 'go test one_test.go'.
    And would also trip up emacs flymake mode.
    The change makes use of go's pseudo '_test' package name suffix,
    which avoids a cyclic dependency on the gonit package.
    In short, this change just moves some code to helper.go
    and exports a few symbols for access within '_test' package.
    Change-Id: I4447563dc5b331791948ce1f14f7a8ba438f4e05
Commits on Jul 11, 2012
  1. @dougm

    Basic process lifecycle management

    dougm committed
    Change-Id: I06bc4c618d425991c3e74473fd9825321f7ac658
Something went wrong with that request. Please try again.