Saturday, November 16, 2024

bitcoin core – Bitcoind is not beginning as system service for some cause

Have bitcoind.service file in /and many others/systemd/system with the next contents:


[Unit]
Description=Bitcoin daemon
After=community.goal

[Service]
ExecStart=/media/consumer/2TB/.bitcoin/bitcoind-start.sh

# Course of administration
####################

Kind=forking
PIDFile=/media/consumer/2TB/.bitcoind/bitcoind.pid
Restart=on-failure

# Listing creation and permissions
####################################

Consumer=consumer
Group=consumer


# Hardening measures
####################

PrivateTmp=true

PrivateDevices=true

MemoryDenyWriteExecute=true

[Install]
WantedBy=multi-user.goal

and still have a shell script with the next contents and execution rights -rwxr-xr-x 1 consumer consumer :


#!/binbash

set -e

sleep 15

echo "Beginning bitcoind with script..."

bitcoind --daemon --server -pid=/media/consumer/2TB/.bitcoin/bitcoind.pid

echo "Begin bitcoind with script accomplished!"

The service will not begin and exists with error:

consumer@raspberrypi:~ $ systemctl standing bitcoind.service

    × bitcoind.service - Bitcoin daemon
         Loaded: loaded (/and many others/systemd/system/bitcoind.service; enabled; preset: enabled)
         Lively: failed (Consequence: exit-code) since Mon 2024-04-01 12:57:32 BST; 13s in the past
        Course of: 5171 ExecStart=/media/consumer/2TB/.bitcoin/bitcoind-start.sh (code=exited, standing=203/EXEC)
            CPU: 15ms

Any assist or concepts why it’s occurring very appreciated!

Yuri

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles