From b95458ef314f792f1aab9519057e31d42a51e311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sat, 6 Nov 2021 13:10:41 +0100 Subject: ssh socket tunnel on shepherd for cardano --- config/shepherd/init.d/cardano.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'config') diff --git a/config/shepherd/init.d/cardano.scm b/config/shepherd/init.d/cardano.scm index 0adc3e8..ccae711 100644 --- a/config/shepherd/init.d/cardano.scm +++ b/config/shepherd/init.d/cardano.scm @@ -99,3 +99,33 @@ #:log-file (string-append db-dir "log/testnet.log")) #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C #:respawn? #t)))) + +(register-services + (make + #:docstring "Cardano Test network ssh tunnel" + #:provides '(testnet-node-ssh) + #:start (make-forkexec-constructor + (list "ssh" "-NTv" + "-o" "ServerAliveInterval=60" + "-o" "ExitOnForwardFailure=yes" + "-o" "StreamLocalBindUnlink=yes" + "-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 "Cardano Main network ssh tunnel" + #:provides '(mainnet-node-ssh) + #:start (make-forkexec-constructor + (list "ssh" "-NTv" + "-o" "ServerAliveInterval=60" + "-o" "ExitOnForwardFailure=yes" + "-o" "StreamLocalBindUnlink=yes" + "-L" "/tmp/alinamn.socket:/run/cardano-node-mainnet/socket" + "cardano@alina") + #:log-file "/tmp/mainnet-ssh.log") + #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C + #:respawn? #t)) -- cgit v1.2.3