From 9befd9042baa1beebf3d4e33126f19677dbe329d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sat, 12 Nov 2022 15:05:46 +0100 Subject: bitcoin server tunnels --- config/shepherd/init.d/bitcoin.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'config/shepherd') diff --git a/config/shepherd/init.d/bitcoin.scm b/config/shepherd/init.d/bitcoin.scm index 8cf5674..8c3ff11 100644 --- a/config/shepherd/init.d/bitcoin.scm +++ b/config/shepherd/init.d/bitcoin.scm @@ -26,6 +26,34 @@ #:requires '(bitcoin-testnet) #:respawn? #t)) +(register-services + (make + #:docstring "Sarah tunnel btc" + #:provides '(sarah-ssh) + #:start (make-forkexec-constructor + (list "ssh" "-NTv" + "-o" "ServerAliveInterval=60" + "-o" "ExitOnForwardFailure=yes" + "-o" "StreamLocalBindUnlink=yes" + "-L" "8332:localhost:8332" + "-L" "8333:localhost:8333" + "sarah") + #:log-file "/tmp/sarah-ssh.log") + #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C + #:respawn? #t)) + +(register-services + (make + #:docstring "Electrs mainnet" + #:provides '(electrs-mainnet) + #:start (make-forkexec-constructor + (list "/home/titan/dev/bitcoin/electrs/target/release/electrs" + "--conf" "/home/titan/dev/bitcoin/electrs/mainnet-conf.toml") + #:log-file "/tmp/electrs-m.log") + #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C + #:requires '(sarah-ssh) + #:respawn? #t)) + (register-services (make #:docstring "Bitcoin testnet index" -- cgit v1.2.3