From 02cca7642d0d37eb53bd38d7e0f4643ebbdc1004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sat, 13 Nov 2021 13:16:38 +0100 Subject: cardano wallet services --- config/shepherd/init.d/cardano.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/config/shepherd/init.d/cardano.scm b/config/shepherd/init.d/cardano.scm index ccae711..ceefed7 100644 --- a/config/shepherd/init.d/cardano.scm +++ b/config/shepherd/init.d/cardano.scm @@ -73,6 +73,7 @@ (list (string-append (getenv "HOME") "/.cabal/bin/cardano-wallet") "serve" "+RTS" "-T" "-RTS" + "--port" "8092" "--node-socket" (string-append db-dir "socket") "--database" (string-append db-dir "wallet") "--token-metadata-server" "https://metadata.cardano-testnet.iohkdev.io" @@ -129,3 +130,19 @@ #:log-file "/tmp/mainnet-ssh.log") #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C #:respawn? #t)) + +(register-services + (make + #:docstring "Mainnet wallet" + #:provides '(mainnet-wallet) + #:start (make-forkexec-constructor + (list (string-append (getenv "HOME") "/.cabal/bin/cardano-wallet") + "serve" + "+RTS" "-T" "-RTS" + "--node-socket" "/tmp/alinamn.socket" + "--database" (string-append (getenv "HOME") "/test-cardano/main/wallet") + "--mainnet") + #:log-file (string-append (getenv "HOME") "/test-cardano/main/log/wallet.log")) + + #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C + #:requires '(mainnet-node-ssh))) -- cgit v1.2.3