Setting up geth as a service under systemd Fedora 27
Prerequisite: dnf install golang
- Create user
geth
withuseradd
- As user
geth
fast sync the blockchain,geth --fast --cache 1024
- Manually run
geth --rpc
as user geth and watch to see that the blockchain continues to sync properly - Install the
geth.service
file (also in this gist) in/usr/lib/systemd/system/
- Make a symlink from
/etc/systemd/system/multi-user.target.wants/geth.service
to/usr/lib/systemd/system/geth.service
systemctl enable geth
followed bysystemctl start geth