I'm running a bitcoin node on my raspberry pi b+, the thing is that the daemon sometimes just die and i need to restart it
is there any way to check for it using systemd?
the process bitcoind starts at boot with this systemd configuration as bitcoind.service
[Unit]
Description=Bitcoin daemon service
Wants=network-online.target
After=network-online.target
[Service]
Type=forking
User=HEREGOESYOURUSER
ExecStart=/usr/bin/bitcoind
[Install]
WantedBy=multi-user.target
can anyone post their systemd files so i can take a look?
edit: configuration that worked
[Unit]
Description=Bitcoin daemon service
Wants=network.target
[Service]
Type=forking
User=HEREGOESYOURUSER
ExecStart=/usr/bin/bitcoind --daemon
Restart=on-failure
[Install]
WantedBy=multi-user.target