Skip to content

Instantly share code, notes, and snippets.

@threetee
Last active April 12, 2018 10:46
Show Gist options
  • Save threetee/06453cd5a488d7b359d5e0c6419f27d6 to your computer and use it in GitHub Desktop.
Save threetee/06453cd5a488d7b359d5e0c6419f27d6 to your computer and use it in GitHub Desktop.
#!/bin/sh
DATE=`date '+%Y%m%d%H%M%S'`
echo "DATE = $DATE"
/usr/local/bin/consul kv put config/erdx/web/TRIGGER_RESTART $DATE
/usr/local/bin/consul kv put config/erdx/worker/TRIGGER_RESTART $DATE
/usr/local/bin/consul kv put config/erdx/scheduler/TRIGGER_RESTART $DATE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment