Created
February 15, 2020 13:08
-
-
Save caius/e9492bc98a5d0d7ff2744ae6c4ddec37 to your computer and use it in GitHub Desktop.
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
apt update | |
apt full-upgrade -y | |
curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | bash | |
readonly optargs="$*" | |
cat >/etc/systemd/system/hab-sup.service <<EOF | |
[Unit] | |
Description=The Habitat Supervisor | |
[Service] | |
ExecStart=/usr/bin/hab sup run ${optargs} | |
Restart=no | |
[Install] | |
WantedBy=default.target | |
EOF | |
systemctl daemon-reload | |
systemctl enable hab-sup | |
systemctl start hab-sup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment