diff options
-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 |