diff options
author | Óscar Nájera <hi@oscarnajera.com> | 2021-11-06 13:10:41 +0100 |
---|---|---|
committer | Óscar Nájera <hi@oscarnajera.com> | 2021-11-06 13:10:41 +0100 |
commit | b95458ef314f792f1aab9519057e31d42a51e311 (patch) | |
tree | 12eec747328457a380f0a09e64ae459a6e7b9038 | |
parent | 3905546bcb73e7dcf64ac30894ce4fffaf815393 (diff) | |
download | dotfiles-b95458ef314f792f1aab9519057e31d42a51e311.tar.gz dotfiles-b95458ef314f792f1aab9519057e31d42a51e311.tar.bz2 dotfiles-b95458ef314f792f1aab9519057e31d42a51e311.zip |
ssh socket tunnel on shepherd for cardano
-rw-r--r-- | config/shepherd/init.d/cardano.scm | 30 |
1 files changed, 30 insertions, 0 deletions
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 <service> + #: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 <service> + #: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)) |