aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2021-11-13 13:16:38 +0100
committerÓscar Nájera <hi@oscarnajera.com>2021-11-13 13:16:38 +0100
commit02cca7642d0d37eb53bd38d7e0f4643ebbdc1004 (patch)
tree05076727667c2e573598c9c4f160285a169607a7 /config
parent74da88fd03a21955b09bdbfdc1facf15fcc474ec (diff)
downloaddotfiles-02cca7642d0d37eb53bd38d7e0f4643ebbdc1004.tar.gz
dotfiles-02cca7642d0d37eb53bd38d7e0f4643ebbdc1004.tar.bz2
dotfiles-02cca7642d0d37eb53bd38d7e0f4643ebbdc1004.zip
cardano wallet services
Diffstat (limited to 'config')
-rw-r--r--config/shepherd/init.d/cardano.scm17
1 files changed, 17 insertions, 0 deletions
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 <service>
+ #: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)))