blob: 1fc1d6f7e115eeca1fb531a815dc726b313e9d85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
(register-services
(list
(service
'(preview-wallet)
#:documentation "Cardano preview wallet"
#:start (make-forkexec-constructor
(list "cardano-wallet"
;;(string-append (getenv "HOME") "/.cabal/bin/cardano-wallet")
"serve"
"--port" "8091"
"--node-socket" "/tmp/nina-pr.socket"
"--database" (string-append (getenv "HOME") "/test-cardano/preview/wallet")
"--testnet" (string-append (getenv "HOME") "/dev/archlinux-ansible/roles/cardano/files/preview/byron-genesis.json"))
#:log-file (string-append (getenv "HOME") "/test-cardano/preview/log/wallet.log"))
#:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C
#:requirement '(nina-ssh))
(service
'(mainnet-wallet)
#:documentation "Mainnet wallet"
#:start (make-forkexec-constructor
(list ;;(string-append (getenv "HOME") "/.cabal/bin/cardano-wallet")
"cardano-wallet"
"serve"
"--node-socket" "/run/cardano-node-mainnet/socket"
"--database" (string-append (getenv "HOME") "/test-cardano/main/wallet")
"--mainnet")
#:log-file (string-append (getenv "HOME") "/test-cardano/main/log/wallet.log"))
;; 2 is SIGINT - interupt process stream, ctrl-C
#:stop (make-kill-destructor 2))))
|