This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ETexuo pipefail | |
shopt -s inherit_errexit | |
# -e - stop on error. | |
# -E - traps will work with -e. | |
# -x - debug output each command. | |
# -u - error on unexpected variables. | |
# -o pipefail - handle errors of '|'. | |
# -s inherit_errexit - fail in subshell failures. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/mitchellh/go-ps" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" | |
) |
OlderNewer