fix/test service

This commit is contained in:
geco91 2020-05-15 18:34:31 +02:00
parent 6faf104352
commit 873937d23e

@ -149,6 +149,8 @@ if [ "${mode}" = "on" ] || [ "${mode}" = "1" ]; then
# install service
echo "*** Install systemd ***"
cat > /mnt/hdd/temp/faraday.service <<EOF
# test: ${binaryName} or $binaryName
[Unit]
Description=faraday
Wants=lnd.service
@ -156,7 +158,7 @@ After=lnd.service
[Service]
WorkingDirectory=/home/faraday/
ExecStart='./faraday --macaroondir=/mnt/hdd/app-data/lnd/data/chain/bitcoin/mainnet --macaroonfile=readonly.macaroon --tlscertpath=/mnt/hdd/app-data/lnd --rpserver=127.0.0.1:10009'
ExecStart='faraday --macaroondir=/mnt/hdd/app-data/lnd/data/chain/bitcoin/mainnet --macaroonfile=readonly.macaroon --tlscertpath=/mnt/hdd/app-data/lnd/tls.cert --rpcserver=127.0.0.1:10009'
User=faraday
Restart=always
TimeoutSec=120