Last active
September 22, 2020 21:11
-
-
Save arikan/50cacb6a310d68539ab8fb63475f7587 to your computer and use it in GitHub Desktop.
Run Avalanche continuously with systemd service on Ubuntu
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
# 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