diff --git a/bin/install-peercoin-core-linux b/bin/install-peercoin-core-linux new file mode 100644 index 0000000000..4772e16f44 --- /dev/null +++ b/bin/install-peercoin-core-linux @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +set -euxo pipefail + +version=24.0.1 + +# TODO: Change to the peercoin package we care about +wget \ + -O bitcoin.tar.gz \ + https://bitcoincore.org/bin/bitcoin-core-$version/bitcoin-$version-x86_64-linux-gnu.tar.gz + +tar \ + -xzvf bitcoin.tar.gz \ + -C /usr/local/bin \ + --strip-components 2 \ + bitcoin-$version/bin/{bitcoin-cli,bitcoind} diff --git a/deploy/bitcoin.conf b/deploy/peercoin.conf similarity index 100% rename from deploy/bitcoin.conf rename to deploy/peercoin.conf diff --git a/deploy/bitcoind.service b/deploy/peercoind.service similarity index 56% rename from deploy/bitcoind.service rename to deploy/peercoind.service index 0bfc4f26fe..19c461d229 100644 --- a/deploy/bitcoind.service +++ b/deploy/peercoind.service @@ -1,17 +1,17 @@ [Unit] After=network-online.target -Description=Bitcoin daemon -Documentation=https://github.com/bitcoin/bitcoin/blob/master/doc/init.md +Description=Peercoin daemon +Documentation=https://github.com/peercoin/peercoin/blob/master/doc/init.md Wants=network-online.target [Service] -ConfigurationDirectory=bitcoin +ConfigurationDirectory=peercoin ConfigurationDirectoryMode=0710 -ExecStart=/usr/local/bin/bitcoind \ - -conf=/etc/bitcoin/bitcoin.conf \ +ExecStart=/usr/local/bin/peercoind \ + -conf=/etc/peercoin/peercoin.conf \ -chain=${CHAIN} -ExecStartPre=/bin/chgrp bitcoin /etc/bitcoin -Group=bitcoin +ExecStartPre=/bin/chgrp peercoin /etc/peercoin +Group=peercoin MemoryDenyWriteExecute=true NoNewPrivileges=true PermissionsStartOnly=true @@ -20,14 +20,14 @@ PrivateTmp=true ProtectHome=true ProtectSystem=full Restart=on-failure -RuntimeDirectory=bitcoind +RuntimeDirectory=peercoind RuntimeDirectoryMode=0710 -StateDirectory=bitcoind +StateDirectory=peercoind StateDirectoryMode=0710 TimeoutStartSec=infinity TimeoutStopSec=600 Type=simple -User=bitcoin +User=peercoin [Install] WantedBy=multi-user.target