Skip to content

Instantly share code, notes, and snippets.

@arikan
Last active September 22, 2020 21:11
Show Gist options
  • Save arikan/50cacb6a310d68539ab8fb63475f7587 to your computer and use it in GitHub Desktop.
Save arikan/50cacb6a310d68539ab8fb63475f7587 to your computer and use it in GitHub Desktop.
Run Avalanche continuously with systemd service on Ubuntu
# Run Avalanche continuously with systemd service
# 1. vim /etc/systemd/system/ava.service
# 2. systemctl start ava.service
[Unit]
Description=AVA Service
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
WorkingDirectory=/home/ubuntu/go/src/github.com/ava-labs/avalanchego
Restart=always
RestartSec=1
User=ubuntu
ExecStart=/home/ubuntu/go/src/github.com/ava-labs/avalanchego/build/avalanchego
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment