summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorquest2020-07-22 19:15:43 -0700
committerquest2020-07-22 19:15:43 -0700
commit0a3b4cb4146a1c2d53f2655c532009994e71780c (patch)
tree28b8466a1e08a394fdaeaca64e7997cbefe53e59
parentd89d1cee0bb291550eb998b20e6ad360eb8eacd6 (diff)
downloadaur-0a3b4cb4146a1c2d53f2655c532009994e71780c.tar.gz
Fix bitcoin service start
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD9
-rw-r--r--bitcoin-reindex.service2
-rw-r--r--bitcoin.install7
-rw-r--r--bitcoin.service2
5 files changed, 14 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 154d5b8e72b9..50b935c941c1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = bitcoin-cash-node-qt
pkgdesc = Bitcoin Cash Node with bitcoind, bitcoin-cli, bitcoin-tx, bitcoin-seeder and bitcoin-qt
pkgver = 0.21.2
- pkgrel = 2
+ pkgrel = 3
url = https://bitcoincashnode.org
install = bitcoin.install
arch = i686
@@ -42,9 +42,9 @@ pkgbase = bitcoin-cash-node-qt
sha256sums = a4f959edc39523423e6f791aef5a448b5c2ab9ca3319f329fd6facc7af422843
sha256sums = c30e5c7e0e97b001fdeac5f4510d5ebc0e0499ec086325e845db609a24f2e22f
sha256sums = 8f05207b586916d489b7d25a68eaacf6e678d7cbb5bfbac551903506b32f904f
- sha256sums = 9643eed2c20d78a9c7347df64099765773615f79d3b8a95693d871c933516880
- sha256sums = 35ff9331d7df8b90adfc7d82752cca4f8b7ff23a29e5d10b07e4e3fc78050679
- sha256sums = abef8a36e4990b85b3a556f546ea8f8349bb7c9d10dbbd7ff8013ae0b931a849
+ sha256sums = f2fd9d8331238727333cf2412ba3759cb194a65b2060eff36808b24c06382104
+ sha256sums = 497dbeefb9cd9792757a9b6e1fbfd92710d19990ee2959add6c30533ae40b6f6
+ sha256sums = e2d6c370fa9f1564013ce0d255f764b8972284d5909d509a306a43994a49a113
sha256sums = f76f4ff434632c19e39d9ff7627786f304bed2ee33cfba843ae06e5c003dc60e
pkgname = bitcoin-cash-node-qt
diff --git a/PKGBUILD b/PKGBUILD
index d97b98c9e489..4f124b5c3fae 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=bitcoin-cash-node-qt
pkgver=0.21.2
-pkgrel=2
+pkgrel=3
pkgdesc="Bitcoin Cash Node with bitcoind, bitcoin-cli, bitcoin-tx, bitcoin-seeder and bitcoin-qt"
arch=('i686' 'x86_64')
url="https://bitcoincashnode.org"
@@ -19,9 +19,9 @@ source=(https://github.com/bitcoin-cash-node/bitcoin-cash-node/archive/v$pkgver.
sha256sums=('a4f959edc39523423e6f791aef5a448b5c2ab9ca3319f329fd6facc7af422843'
'c30e5c7e0e97b001fdeac5f4510d5ebc0e0499ec086325e845db609a24f2e22f'
'8f05207b586916d489b7d25a68eaacf6e678d7cbb5bfbac551903506b32f904f'
- '9643eed2c20d78a9c7347df64099765773615f79d3b8a95693d871c933516880'
- '35ff9331d7df8b90adfc7d82752cca4f8b7ff23a29e5d10b07e4e3fc78050679'
- 'abef8a36e4990b85b3a556f546ea8f8349bb7c9d10dbbd7ff8013ae0b931a849'
+ 'f2fd9d8331238727333cf2412ba3759cb194a65b2060eff36808b24c06382104'
+ '497dbeefb9cd9792757a9b6e1fbfd92710d19990ee2959add6c30533ae40b6f6'
+ 'e2d6c370fa9f1564013ce0d255f764b8972284d5909d509a306a43994a49a113'
'f76f4ff434632c19e39d9ff7627786f304bed2ee33cfba843ae06e5c003dc60e')
backup=('etc/bitcoin/bitcoin.conf'
'etc/logrotate.d/bitcoin')
@@ -84,6 +84,7 @@ package() {
msg2 'Installing essential directories'
install -dm 700 "$pkgdir/etc/bitcoin"
install -dm 755 "$pkgdir/srv/bitcoin"
+ install -dm 755 "$pkgdir/run/bitcoin"
pushd build
msg2 'Installing executables and man pages...'
diff --git a/bitcoin-reindex.service b/bitcoin-reindex.service
index 236a24d05e54..52900d8fc4c5 100644
--- a/bitcoin-reindex.service
+++ b/bitcoin-reindex.service
@@ -10,7 +10,7 @@ ExecStart=/usr/bin/bitcoind -daemon=0 \
-conf=/etc/bitcoin/bitcoin.conf \
-datadir=/srv/bitcoin \
-reindex \
- -pid=/run/bitcoind.pid
+ -pid=/run/bitcoin/bitcoind.pid
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/bitcoind stop
PrivateTmp=true
diff --git a/bitcoin.install b/bitcoin.install
index b03afc358bda..5f48f0a902f6 100644
--- a/bitcoin.install
+++ b/bitcoin.install
@@ -3,19 +3,19 @@ _bc_group=bitcoin
post_install() {
_mkuser
- chown -R $_bc_user:$_bc_group /etc/bitcoin /srv/bitcoin
+ chown -R $_bc_user:$_bc_group /etc/bitcoin /srv/bitcoin /run/bitcoin
printf "%b\n" "$bitcoin"
}
post_upgrade() {
_mkuser
- chown -R $_bc_user:$_bc_group /etc/bitcoin /srv/bitcoin
+ chown -R $_bc_user:$_bc_group /etc/bitcoin /srv/bitcoin /run/bitcoin
printf "%b\n" "$bitcoin"
}
post_remove() {
_rmuser
- rm -rf /srv/bitcoin
+ rm -rf /srv/bitcoin /run/bitcoin
}
_mkuser() {
@@ -46,7 +46,6 @@ To communicate with bitcoin-cash-node as a normal user:
$ mkdir -p ~/.bitcoin
$ cat > ~/.bitcoin/bitcoin.conf <<'EOF'
-rpcconnect=127.0.0.1
rpcport=8332
rpcuser=bitcoin
rpcpassword=secret
diff --git a/bitcoin.service b/bitcoin.service
index abb6da86942d..7f2c2ac52785 100644
--- a/bitcoin.service
+++ b/bitcoin.service
@@ -9,7 +9,7 @@ Group=bitcoin
ExecStart=/usr/bin/bitcoind -daemon=0 \
-conf=/etc/bitcoin/bitcoin.conf \
-datadir=/srv/bitcoin \
- -pid=/run/bitcoind.pid
+ -pid=/run/bitcoin/bitcoind.pid
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/bitcoind stop
PrivateTmp=true