(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))))