Last active
July 3, 2019 20:43
-
-
Save smford22/2b13c91c00602fe0d96e26ff1c4f9ab0 to your computer and use it in GitHub Desktop.
Quick Hab install/service setup
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
curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash | |
hab license accept | |
cat << EOF > /etc/systemd/system/hab-sup.service | |
[Unit] | |
Description=Habitat Supervisor | |
[Service] | |
ExecStartPre=/bin/bash -c /bin/systemctl | |
ExecStart=/bin/hab run --auto-update --listen-gossip 0.0.0.0:9638 --listen-http 0.0.0.0:9631 | |
[Install] | |
WantedBy=default.target | |
EOF | |
systemctl daemon-reload | |
systemctl start hab-sup | |
systemctl enable hab-sup | |
mkdir -p /hab/user/config-baseline/config | |
mkdir -p /hab/user/audit-baseline/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment