You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
510 B

  1. # Tendermint (Upstart unit)
  2. description "Tendermint"
  3. start on {{ tendermint_upstart_start_on }}
  4. stop on {{ tendermint_upstart_stop_on }}
  5. script
  6. # Use su to become tendermint user non-interactively on old Upstart versions (see http://superuser.com/a/234541/76168)
  7. exec su -s /bin/sh -c 'TMROOT={{tendermint_home}} exec "$0" "$@" >> {{ tendermint_log_file }} 2>&1' tendermint -- /usr/local/bin/tendermint node \
  8. --moniker={{inventory_hostname}}
  9. end script
  10. respawn
  11. respawn limit 10 10
  12. kill timeout 10