Commits on Sep 19, 2011
  1. Merge pull request #24 from moai/master

    Prevent creation of zombie processes on profile delete
    committed Sep 19, 2011
Commits on Apr 15, 2011
  1. bump version number

    committed Apr 15, 2011
  2. README modifications

    committed Apr 10, 2011
  3. Wait for profiles to stop before exiting (fixes #22)

    ProcLaunch tried to be optimistic in all things, and so would blindly
    exit after sending running profiles their respective shutdown signals.
    This commit makes ProcLaunch actually wait around for them to stop,
    unless it receives HUP twice, in which case it immediately exits.
    committed Apr 10, 2011
Commits on Apr 10, 2011
  1. Add a --log-path option (#23)

    Allow --log-path to send errors to that file instead of error.log
    If multiple instances of proclaunch are writing to the same log file they
    will clober each other, guaranteed.
    committed Apr 10, 2011
Commits on Mar 4, 2011
Commits on Feb 24, 2011
  1. still_running will detect processes running as root

    Perl's implementation of kill() returns the number of
    processes that it was able to send a signal to. If that
    number is 0, we have to check c's ERRNO, which in perl is
    contained in the $! variable, already stringified.
    The error will contain the message "Operation not permitted"
    if the process is running but as a different user.
    committed Feb 24, 2011
Commits on Feb 23, 2011
  1. Bump version

    committed Feb 23, 2011
Commits on Feb 22, 2011
  1. Profile changes

    - Kill profiles that aren't in the directory anymore
    - Optional reloading instead of restarting using the 'reload' file
    - Optional overriding of stop signal using 'stop_signal' file
    committed Feb 22, 2011
Commits on Feb 19, 2011
  1. fix typo in crontab line.

    btbytes committed with Feb 19, 2011
Commits on Sep 24, 2010
  1. Add a simple integration test (github issue #3)

    This test is pretty simple but it exercises the core functionality.
    It creates a simple profile like example_profiles/sleeper, waits
    for it to start up, kills it, ensures that it restarts, and kills
    the ProcLaunch instance.
    This commit also changes log messages to be more consistent. Every
    message is prefixed with either 'ProcLaunch' or the pertinent profile
    name and messages that mention a pid always do so as 'pid <PID>'.
    committed Sep 24, 2010
Commits on Sep 16, 2010
  1. Implement an explicit state machine for the main loop

    This change cleans up some questionable code in App::ProcLaunch
    that tried to keep track of old profiles, due to the bad design decision
    to overwrite a list of profiles on every iteration of the main loop.
    Instead, we keep track of a hash of profiles, updating it on every
    loop if necessary. In addition, all of the code that decides what to do
    when with regards to profiles has moved into App::ProcLaunch::Profile::run().
    Also, add some docs about the changes.
    committed Sep 16, 2010
Commits on Sep 13, 2010
  1. Add the .md suffix to README so the generated Build script stops comp…

    Pete Keen committed Sep 13, 2010
  2. Fix dying on pidfile disappearance (github issue #4)

    This was a confluence of two errors:
    - Attempting to queue a pid for later killing when it's already disappeared
    - Trying to find the pid file immediately after fork return.
    The first problem was solved simply by queuing the already-saved pid, instead
    of trying to read it again from a pid_file that might have disappeared during
    profile cleanup.
    The second is a bit trickier. Instead of dying if the profile doesn't
    immediately create a pid file, we wait for a second after the fork returns.
    If the profile still hasn't created a pid file, warn about it instead of dying.
    This commit also adds a new example profile that recreates the behavior in the
    committed Sep 13, 2010
Commits on Sep 7, 2010
  1. More documentation

    committed Sep 7, 2010
  2. Change some formatting

    committed Sep 7, 2010
  3. Minimal tests

    committed Sep 7, 2010
  4. Bump version

    committed Sep 7, 2010