diff options
author | Óscar Nájera <hi@oscarnajera.com> | 2022-11-12 15:05:46 +0100 |
---|---|---|
committer | Óscar Nájera <hi@oscarnajera.com> | 2022-11-12 15:05:46 +0100 |
commit | 9befd9042baa1beebf3d4e33126f19677dbe329d (patch) | |
tree | e246cbb4a2601d6b5679029e20b894bf4700466a /config/shepherd | |
parent | 4c6325df338352edf548b7ebed37815f658d46f5 (diff) | |
download | dotfiles-9befd9042baa1beebf3d4e33126f19677dbe329d.tar.gz dotfiles-9befd9042baa1beebf3d4e33126f19677dbe329d.tar.bz2 dotfiles-9befd9042baa1beebf3d4e33126f19677dbe329d.zip |
bitcoin server tunnels
Diffstat (limited to 'config/shepherd')
-rw-r--r-- | config/shepherd/init.d/bitcoin.scm | 28 |
1 files changed, 28 insertions, 0 deletions
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 @@ -28,6 +28,34 @@ (register-services (make <service> + #: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 <service> + #: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 <service> #:docstring "Bitcoin testnet index" #:provides '(index-testnet) #:start (make-forkexec-constructor |