Skip to content

Instantly share code, notes, and snippets.

@caius
Created February 15, 2020 13:08
Show Gist options
  • Save caius/e9492bc98a5d0d7ff2744ae6c4ddec37 to your computer and use it in GitHub Desktop.
Save caius/e9492bc98a5d0d7ff2744ae6c4ddec37 to your computer and use it in GitHub Desktop.
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