banner

Have bitcoind.service file in /etc/systemd/system with the following contents:


[Unit]
Description=Bitcoin daemon
After=network.target

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

# Process management
####################

Type=forking
PIDFile=/media/user/2TB/.bitcoind/bitcoind.pid
Restart=on-failure

# Directory creation and permissions
####################################

User=user
Group=user


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

PrivateTmp=true

PrivateDevices=true

MemoryDenyWriteExecute=true

[Install]
WantedBy=multi-user.target

and also have a shell script with the following contents and execution rights -rwxr-xr-x 1 user user :


#!/binbash

set -e

sleep 15

echo "Starting bitcoind with script..."

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

echo "Start bitcoind with script completed!"

The service won’t start and exists with error:

user@raspberrypi:~ $ systemctl status bitcoind.service

    × bitcoind.service - Bitcoin daemon
         Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; preset: enabled)
         Active: failed (Result: exit-code) since Mon 2024-04-01 12:57:32 BST; 13s ago
        Process: 5171 ExecStart=/media/user/2TB/.bitcoin/bitcoind-start.sh (code=exited, status=203/EXEC)
            CPU: 15ms

Any help or ideas why it is happening very appreciated!

Yuri

banner

Converter

Source: CurrencyRate
Top Selling Multipurpose WP Theme

Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

banner

Leave a Comment

Layer 1
Your Crypto & Blockchain Beacon

CryptoInsightful

Welcome to CryptoInsightful.com, your trusted source for in-depth analysis, news, and insights into the world of cryptocurrencies, blockchain technology, NFTs (Non-Fungible Tokens), and cybersecurity. Our mission is to empower you with the knowledge and understanding you need to navigate the rapidly evolving landscape of digital assets and emerging technologies.