Add monerod

This commit is contained in:
Alex D. 2021-03-17 14:15:44 +00:00
parent ef7e0a7b92
commit c3bed31c82
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
6 changed files with 71 additions and 1 deletions

View File

@ -45,6 +45,9 @@ Public ports:
Transmission: 51413
Wireguard: 51820
(HA) Gitea SSH: 2442
(HA) Mumble: 64738
Mumble: 64738
Monerod:
p2p: 18080
RPC: 18081
(HA): Proxied by HAProxy

18
config/monerod/APKBUILD Normal file
View File

@ -0,0 +1,18 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_svcname=monerod
. ../APKBUILD-config.common
pkgver=2021.03.17
pkgrel=0
source="
redxen.conf
"
package() {
package_copy_configs
mkdir -p "$pkgdir"/var/lib/monerod
}
sha512sums="ecbf9107c2fc19ad5f337aab0e3db0b3aca7249af9b6ca4b243bf41d13a16f9baff35d75bc7f35b83d71c045765de3fab69a3340951ff9e6b7b8b3f791c4bf09 redxen.conf"

View File

@ -0,0 +1,15 @@
db-sync-mode=safe
enforce-dns-checkpointing=1
no-igd=1
# RPC
rpc-bind-ip=0.0.0.0
rpc-bind-port=18081
confirm-external-bind=1
restricted-rpc=1
public-node=1
# P2P
p2p-bind-ip=0.0.0.0
p2p-bind-port=18080

13
openrc/monerod/APKBUILD Normal file
View File

@ -0,0 +1,13 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_svcname=monerod
_grpname=blockchain
. ../APKBUILD-openrc.common
pkgver=2021.03.17
pkgrel=1
depends="openrc redxen-config-$_svcname monero"
sha512sums="e255bb9f26345b2313914d23d099cf580845af563517a1cb75ac7df2989d959e603452a674f61d42686947ae15a47402dab10f139698b2271dcc3e289e19f3c6 runfile
31e7973b8a580d04d4a0fa40357914fecbc46b42799620480a2d158bdc38159c13a54a82549972a56de8fd163a61e057ea65bc3899857c44de705c87ff2181ce conffile"

1
openrc/monerod/conffile Normal file
View File

@ -0,0 +1 @@
MONEROD_CONF="/etc/monerod/redxen.conf"

20
openrc/monerod/runfile Normal file
View File

@ -0,0 +1,20 @@
#!/sbin/openrc-run
: ${MONEROD_CONF:=/etc/monero/daemon.conf}
: ${MONEROD_DATA:=/var/lib/monerod}
name=monerod
command="/usr/bin/monerod"
pidfile="/run/monerod.pid"
command_args="--config-file ${MONEROD_CONF} --detach --pidfile $pidfile --non-interactive --no-zmq --no-igd --data-dir ${MONEROD_DATA} --enforce-dns-checkpointing ${MONEROD_EXTRA_ARGS}"
depend() {
need net dns
after firewall
}
start_pre() {
checkpath -d -m755 "${MONEROD_DATA}"
checkpath -f -m644 "${MONEROD_CONF}"
}