Permalink
Commits on Jan 18, 2017
  1. Merge pull request #499 from pqarmitage/fixes

    ipwrapper.c: make functions void if return value not used or constant
    pqarmitage committed on GitHub Jan 18, 2017
  2. ipwrapper.c: make functions void if return value not used or constant

    Several functions in check/ipwrapper.c were always returnung the same
    value, and the code calling the functions then checked and returned an
    error if the return value was not the value always returned. Also, for
    some functions returning a value the return value was never checked in
    the calling function.
    
    Making the functions void, and removing the if (...) makes the code easier
    to read, and potentially slightly more efficient.
    
    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Jan 18, 2017
  3. Merge pull request #498 from pqarmitage/fixes

    Reinstate loading of ip_vs module if needed
    pqarmitage committed on GitHub Jan 18, 2017
  4. Merge pull request #491 from ze42/master

    sorry_server load/reload on failure
    pqarmitage committed on GitHub Jan 18, 2017
Commits on Jan 9, 2017
  1. sorry_server: set it up on start or reload if quorum is down

    on start: in alpha mode
    on reload: if changed, or no previous sorry_server.
    ze42 committed Jan 9, 2017
Commits on Dec 29, 2016
  1. Fix a typo in a help message in configure.ac

    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Dec 29, 2016
  2. Fix some more compiler warnings

    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Dec 29, 2016
  3. Reinstate code checking module ip_vs loaded

    Commit d900df2 removed a bit to much code that looked as though it
    wasn't doing anything, with the result that the check of whether the
    ip_vs module was loaded didn't occur.
    
    This commit reinstates the code for checking, and if necessary loading,
    the ip_vs module, but also sanitises the code slightly.
    
    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Dec 29, 2016
Commits on Dec 19, 2016
  1. Merge pull request #487 from joncastro/master

    fix doc: weight default is 0, which means tat a failure implies a FAU…
    pqarmitage committed on GitHub Dec 19, 2016
  2. Merge branch 'master' into master

    pqarmitage committed on GitHub Dec 19, 2016
  3. Merge pull request #488 from pqarmitage/fixes

    Update documentation for tracking scripts weight 0
    pqarmitage committed on GitHub Dec 19, 2016
  4. Add keepalived.SYNOPSIS missing from previous commit

    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Dec 19, 2016
  5. Update documentation for tracking scripts weight 0

    Issue #484 identified that the documentation was not correct regarding
    weights for tracking scripts.
    
    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Dec 19, 2016
Commits on Dec 14, 2016
  1. Merge pull request #482 from pqarmitage/fixes

    Fix building on Centos 7/RHEL 7 re lightweight tunnel encapsulation
    pqarmitage committed on GitHub Dec 14, 2016
  2. Fix building on Centos 7/RHEL 7 re lightweight tunnel encapsulation

    RedHat have partially backported lightweight tunnel encapsulation
    into their kernel, but not included MPLS or ILA. We need to have
    conditional compilation for LWTUNNEL_ENCAP_MPLS and LWTUNNEL_ENCAP_ILA
    rather than just checking for RTA_ENCAP.
    
    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Dec 14, 2016
Commits on Dec 6, 2016
  1. Merge pull request #476 from pqarmitage/fixes

    Minor fixes
    pqarmitage committed on GitHub Dec 6, 2016
  2. Ensure syslog and mem_check_log open before using them

    A segfault was occuring when --enable-mem-check-log option was
    selected, due to attempting to write to the log file before it had
    been opened. It was also evident that there could be attempts to
    write to syslog before that had been opened too.
    
    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Dec 6, 2016
  3. Add additional files modified by commit e405987 (terminate children)

    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Dec 6, 2016
Commits on Dec 5, 2016
  1. Merge pull request #475 from rohara/devel

    Terminate child processes if parent dies
    pqarmitage committed on GitHub Dec 5, 2016
  2. Terminate child processes if parent dies

    If the parent keepalived process is killed, the child processes will
    be orphaned and can cause problem when attempting to restart
    keepalived. This patch makes use of prctl with PR_SET_PDEATHSIG such
    that all child processes will receive SIGTERM if the parent process
    dies.
    
    Signed-off-by: Ryan O'Hara <rohara@redhat.com>
    rohara committed Dec 5, 2016
Commits on Nov 29, 2016
  1. Fix conditional compilation for LIBIPVS without netlink

    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Nov 29, 2016
  2. Fix detection of no netlink being installed

    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Nov 29, 2016
Commits on Nov 27, 2016
  1. Fix unitialised use of misck_checker in script timeout

    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Nov 27, 2016
Commits on Nov 26, 2016
  1. keepalived-1.3.2

    committed Nov 26, 2016
  2. notify: use _GNU_SOURCE

    Just to make compiler happy about inconsitent declaration of mempcpy
    and ctrchrnul. Just cosmetics here.
    committed Nov 26, 2016
  3. Merge pull request #471 from pqarmitage/fixes

    Further changes for script init state failed (commit 1e93da0)
    pqarmitage committed on GitHub Nov 26, 2016
  4. Further changes for script init state failed (commit 1e93da0)

    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Nov 26, 2016
  5. Merge pull request #468 from TargetHolding/init_fail

    Init_fail setting for vrrp_script
    pqarmitage committed on GitHub Nov 26, 2016
  6. Merge pull request #470 from pqarmitage/fixes

    Fix startup if in non-forking mode with relative path name to config file
    pqarmitage committed on GitHub Nov 26, 2016
  7. Only set umask(0) in parent process

    The children inherit it from the parent, so no need to set it in
    the vrrp or checker child processes.
    
    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Nov 26, 2016
  8. Don't chdir("/") if not forking

    In keepalived_main() there is a comment that the working directory
    is / unless keepalived is run in non-forked mode, in which case it
    remains the current working directory when keepalived was run.
    
    Unfortunately start_vrrp_child() and start_check_child() were
    executing chdir("/") regardless of whether they had been forked or not.
    
    Since the parent process does chdir("/") if it is appropriate, the
    children will inherit that, so they don't need to chdir() at all.
    
    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Nov 26, 2016
  9. Exit if can't read configuration file

    If we have no configuration, we have nothing to run, so exit.
    
    Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
    pqarmitage committed Nov 26, 2016