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.

15 lines
495 B

  1. # Tendermint (Upstart unit)
  2. description "Tendermint"
  3. start on (runlevel [2345] and started basecoin)
  4. stop on (runlevel [!2345] and stopping basecoin)
  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 'TMHOME={{tendermint_home}} exec "$0" "$@" >> {{ tendermint_log_file }} 2>&1' {{ tendermint_user }} -- /usr/local/bin/tendermint node
  8. end script
  9. respawn
  10. respawn limit 10 10
  11. kill timeout 10