Start the service and check it's working as expected.
Erigon - Command Aliases
daemon-reload# Reload any changes made to the erigon.serviceerigon-enable# Enable the erigon.serviceerigon-start# Start the erigon.serviceerigon-status# View the status of the erigon.serviceerigon-log# View the erigon.service logs
Erigon - Update Scripts
Create Erigon update script.
vim~/erigon-update.sh
~/erigon-update.sh
#!/bin/bashset-ewhiletrue; doread-p"Are you sure you want to update Erigon? (Y/N) "yncase $yn in[Yy]*)break;;[Nn]*)exit;;* )echo"Please answer Y or N.";;esacdonecd~/erigonread-p"Enter the commit hash you want to checkout: "commit_hashgitfetchgitcheckout $commit_hashechoecho"****************"echo"Making Erigon..."echo"****************"makeerigon# Check if erigon.service is runningservice_was_running=0ifsudosystemctlis-active--quieterigon.service; then service_was_running=1echo"******************"echo"Stopping Erigon..."sudosystemctlstoperigon.servicefiecho"Replacing previous version..."sudorm-rf/usr/local/bin/erigonsudocp~/erigon/build/bin/erigon/usr/local/bin# Only start erigon.service if it was running originallyif [ $service_was_running -eq1 ]; thenecho"Restarting Erigon..."echo"********************"sudosystemctlstarterigon.servicefi