Is there an easy way to ensure that bitcoind restarts on system reboot? I tried placing the systemd service file in /etc/systemd/system but that didn't seem to work... thanks in advance
1Try askubuntu.com if you're facing issues with the systemd script, it's not bitcoin specific, and those guys are a lot better at the whole linux side of things– Raghav SoodAug 9, 2018 at 21:08
After putting the systemd file in
/etc/systemd/system, make sure that your systemd file is set up to work with your installation (binary path, datadir path, etc. are correct). Then run
sudo systemctl enable bitcoind.
Alternatively you can do edit your crontab with
crontab -e and add the line
do you really need to put the executable in the system folder? Update path and add the root folder for the daemon so it can be updated easier and not forget to copy everything over...– GoZippyAug 21, 2021 at 5:18