Skip to content

ignore runtime premeption signals, SIGURG (was: receiving signal "urgent I/O condition") #1486

@MikeVL

Description

@MikeVL

Consul Template version

v0.26.0

Configuration

consul {
  address = "consul.service.consul:8500"
}

log_level = "info"

vault {
  address = "http://active.vault.service.consul:8200"
}

exec {
  command = "consul/uwsgi.sh"
  splay = "30s"

  env {
    custom = [
      "DJANGO_CONF=consul/django.conf.py",
    ]
  }

  reload_signal = "SIGHUP"
  kill_signal = "SIGTERM"
}

template {
  source = "consul/django.conf.ctmpl"
  destination = "consul/django.conf.py"
  error_on_missing_key = true
  backup = true

  wait {
    min = "5s"
  }
}

Command

# consul/uwsgi.sh

if [[ -f "${DJANGO_CONF}.bak" ]]; then
    diff --color=always ${DJANGO_CONF}.bak ${DJANGO_CONF} > /dev/stdout
fi

exec uwsgi --ini uwsgi.ini ${UWSGI_EXTRA_ARGS}

Nomad console log

Снимок экрана 2021-06-17 в 17 15 52

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions