From a304f8bdb041e0f5c05d24f71e869732ec1de0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sat, 18 Dec 2021 11:48:04 +0100 Subject: Testnet to new host and postgresql ssh tunnel --- config/shepherd/init.d/cardano.scm | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'config/shepherd') diff --git a/config/shepherd/init.d/cardano.scm b/config/shepherd/init.d/cardano.scm index 6966e57..addc66e 100644 --- a/config/shepherd/init.d/cardano.scm +++ b/config/shepherd/init.d/cardano.scm @@ -110,12 +110,26 @@ "-o" "ServerAliveInterval=60" "-o" "ExitOnForwardFailure=yes" "-o" "StreamLocalBindUnlink=yes" - "-L" "/tmp/sarahtn.socket:/run/cardano-node-testnet/socket" - "cardano@sarah") + "-L" "/tmp/alinatn.socket:/run/cardano-node-testnet/socket" + "cardano@alina") #:log-file "/tmp/testnet-ssh.log") #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C #:respawn? #t)) +(register-services + (make + #:docstring "Alina Postgresql ssh" + #:provides '(alina-postgresql-ssh) + #:start (make-forkexec-constructor + (list "ssh" "-NTv" + "-o" "ServerAliveInterval=60" + "-o" "ExitOnForwardFailure=yes" + "-L" "54320:localhost:5432" + "cardano@alina") + #:log-file "/tmp/postgresql-ssh.log") + #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C + #:respawn? #t)) + (register-services (make #:docstring "Cardano Testnet wallet" @@ -125,7 +139,7 @@ "serve" "+RTS" "-T" "-RTS" "--port" "8091" - "--node-socket" "/tmp/sarahtn.socket" + "--node-socket" "/tmp/alinatn.socket" "--database" (string-append (getenv "HOME") "/test-cardano/testnet/wallet") "--testnet" (string-append (getenv "HOME") "/test-cardano/config/testnet-byron-genesis.json")) #:log-file (string-append (getenv "HOME") "/test-cardano/testnet/log/wallet.log")) -- cgit v1.2.3