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
1 Answer
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
@reboot bitcoind
-
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