# First take the gaiad.system file above and paste the contents into the below file
nano /etc/systemd/system/gaiad.system
# Then reload systemd
sudo systemctl daemon-reload
# Now you cand use the systemd suite to administer gaiad
sudo systemctl start|stop|restart
journalctl -u gaiad -f
Created
May 1, 2018 20:56
-
-
Save jackzampolin/11f7b01e99819b080f808a02bb68728b 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
[Unit] | |
Description=gaiad | |
After=network.target | |
[Service] | |
Type=simple | |
User=ubuntu | |
WorkingDirectory=/home/ubuntu | |
ExecStart=/home/ubuntu/go/bin/gaiad start | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, this was helpful. Only thing is that the filename needed to be
/etc/systemd/system/gaiad.service
instead of.system