Add testnet4 to install script

This commit is contained in:
Stephan Oeste
2024-09-24 20:04:33 +02:00
parent d8cfc6e32d
commit 7057b31c3c
3 changed files with 147 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Bitcoind-testnet4
After=network.target
[Service]
ExecStart=/usr/local/bin/bitcoind -conf=bitcoin.conf -daemon -testnet4 -printtoconsole -pid=/bitcoin/bitcoind-testnet4.pid
ExecStop=/usr/local/bin/bitcoin-cli -testnet4 stop
Type=forking
PIDFile=/bitcoin/bitcoind-testnet4.pid
Restart=on-failure
User=bitcoin
Group=bitcoin
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
[Install]
WantedBy=multi-user.target