Skip to content
Snippets Groups Projects
Forked from The Tor Project / Core / Tor
Source project has a limited visibility.
  • Tomasz Torcz's avatar
    a8999acc
    fix and enable systemd watchdog · a8999acc
    Tomasz Torcz authored and Nick Mathewson's avatar Nick Mathewson committed
      There were following problems:
      - configure.ac wrongly checked for defined HAVE_SYSTEMD; this
        wasn't working, so the watchdog code was not compiled in.
        Replace library search with explicit version check
      - sd_notify() watchdog call was unsetting NOTIFY_SOCKET from env;
        this means only first "watchdog ping" was delivered, each
        subsequent one did not have socket to be sent to and systemd
        was killing service
      - after those fixes, enable Watchdog in systemd unit with one
        minute intervals
    a8999acc
    History
    fix and enable systemd watchdog
    Tomasz Torcz authored and Nick Mathewson's avatar Nick Mathewson committed
      There were following problems:
      - configure.ac wrongly checked for defined HAVE_SYSTEMD; this
        wasn't working, so the watchdog code was not compiled in.
        Replace library search with explicit version check
      - sd_notify() watchdog call was unsetting NOTIFY_SOCKET from env;
        this means only first "watchdog ping" was delivered, each
        subsequent one did not have socket to be sent to and systemd
        was killing service
      - after those fixes, enable Watchdog in systemd unit with one
        minute intervals