Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbuckkets committed Nov 4, 2023
1 parent 8e8449b commit 0072631
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
16 changes: 16 additions & 0 deletions bin/install-peercoin-core-linux
Original file line number Diff line number Diff line change
@@ -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}
File renamed without changes.
20 changes: 10 additions & 10 deletions deploy/bitcoind.service β†’ deploy/peercoind.service
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 0072631

Please sign in to comment.