Halt your machine after sending notification and waiting specified time limit
npm install stanna./do-awesome-stuff.sh; stanna
Rather than having to setup email smarthost and all that 70's stuff. You can create a channel in Slack, and then a webhook in Slack. So what happens in the above example is:
1. ./do-awesome-stuff.sh does its thing.
2. the ';' says when ./do-awesome-stuff.sh exits, run stanna
3. stanna post to Slack
4. waits the configured timeout (just in case you want to login and stanna abort the shutdown)
5. system is haulted.
6. you save $$$ in the cloud
A simple configuration looks like this:
cat ~/.stanna.json | jq '.'
{
"waitTimeBeforeHalt": "500",
"channel": "#deep-learning",
"webhook": "https://hooks.slack.com/services/asdfasdfasdf/asdfasdfasdf",
"user": "@awesome1"
}
You can create this file yourself or simply run the wizard:
stanna init
More features will show up in the future.