Link Search Menu Expand Document

terminate

The terminate field makes it possible to define what system signal to send to a program’s process on shutdown.

Supported Signals:

  • SIGTERM (default)
  • SIGINT
  • SIGKILL
  • SIGPWR
  • SIGQUIT
  • SIGSTOP
  • SIGUSR1
  • SIGUSR2

Summary

FIELD       terminate
PATH        program[N].terminate
PARENT      program
TYPE        String
DEFAULT     "SIGTERM"

Example

[[program]]
  binary = "/usr/bin/path"
  args = "-jar myapp.jar"
  env = ["HOME=/", "USER=root"]
  stdout = "/dev/vtty"
  stderr = "/dev/vtty"
  bootstrap = ["SLEEP 3000"]
  cwd = "/"
  strace = true
  root = true
  terminate = "SIGTERM"

CLI Flag

--program[0].terminate="SIGTERM"

Copyright © 2020 Vorteil.io. Support website for Vorteil.io