Browse Source

Revert "Give timeout to stop docker-compose, SIGKILL clightning"

This reverts commit 487565658a.
feature/auto_ssh
nicolas.dorier 6 years ago
parent
commit
ac4263d71a
  1. 2
      btcpay-down.sh
  2. 4
      btcpay-restart.sh
  3. 8
      btcpay-setup.sh
  4. 2
      btcpay-up.sh
  5. 2
      btcpay-update.sh
  6. 2
      changedomain.sh
  7. 1
      docker-compose-generator/docker-fragments/bitcoin-clightning.yml
  8. 1
      docker-compose-generator/docker-fragments/litecoin-clightning.yml

2
btcpay-down.sh

@ -3,4 +3,4 @@
. /etc/profile.d/btcpay-env.sh
cd "`dirname $BTCPAY_ENV_FILE`"
docker-compose -f $BTCPAY_DOCKER_COMPOSE down -t 180
docker-compose -f $BTCPAY_DOCKER_COMPOSE down

4
btcpay-restart.sh

@ -3,5 +3,5 @@
. /etc/profile.d/btcpay-env.sh
cd "`dirname $BTCPAY_ENV_FILE`"
docker-compose -f $BTCPAY_DOCKER_COMPOSE down -t 180
docker-compose -f $BTCPAY_DOCKER_COMPOSE up -d -t 180
docker-compose -f $BTCPAY_DOCKER_COMPOSE down
docker-compose -f $BTCPAY_DOCKER_COMPOSE up -d

8
btcpay-setup.sh

@ -270,9 +270,9 @@ Requires=docker.service network-online.target
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash -c '. /etc/profile.d/btcpay-env.sh && cd \"\$(dirname \$BTCPAY_ENV_FILE)\" && docker-compose -f \"\$BTCPAY_DOCKER_COMPOSE\" up -d -t 180'
ExecStart=/bin/bash -c '. /etc/profile.d/btcpay-env.sh && cd \"\$(dirname \$BTCPAY_ENV_FILE)\" && docker-compose -f \"\$BTCPAY_DOCKER_COMPOSE\" up -d'
ExecStop=/bin/bash -c '. /etc/profile.d/btcpay-env.sh && cd \"\$(dirname \$BTCPAY_ENV_FILE)\" && docker-compose -f \"\$BTCPAY_DOCKER_COMPOSE\" stop'
ExecReload=/bin/bash -c '. /etc/profile.d/btcpay-env.sh && cd \"\$(dirname \$BTCPAY_ENV_FILE)\" && docker-compose -f \"\$BTCPAY_DOCKER_COMPOSE\" restart -t 180'
ExecReload=/bin/bash -c '. /etc/profile.d/btcpay-env.sh && cd \"\$(dirname \$BTCPAY_ENV_FILE)\" && docker-compose -f \"\$BTCPAY_DOCKER_COMPOSE\" restart'
[Install]
WantedBy=multi-user.target" > /etc/systemd/system/btcpayserver.service
@ -299,7 +299,7 @@ stop on runlevel [!2345]
script
. /etc/profile.d/btcpay-env.sh
cd \"\$(dirname \$BTCPAY_ENV_FILE)\"
docker-compose -f \"\$BTCPAY_DOCKER_COMPOSE\" up -d -t 180
docker-compose -f \"\$BTCPAY_DOCKER_COMPOSE\" up -d
end script" > /etc/init/start_containers.conf
echo -e "BTCPay Server upstart configured in /etc/init/start_containers.conf\n"
initctl reload-configuration
@ -313,7 +313,7 @@ if [ ! -z "$OLD_BTCPAY_DOCKER_COMPOSE" ] && [ "$OLD_BTCPAY_DOCKER_COMPOSE" != "$
docker-compose -f "$OLD_BTCPAY_DOCKER_COMPOSE" down
fi
docker-compose -f "$BTCPAY_DOCKER_COMPOSE" up -d --remove-orphans -t 180
docker-compose -f "$BTCPAY_DOCKER_COMPOSE" up -d --remove-orphans
# Give SSH key to BTCPay
if [[ -f "$BTCPAY_HOST_SSHKEYFILE" ]]; then

2
btcpay-up.sh

@ -3,4 +3,4 @@
. /etc/profile.d/btcpay-env.sh
cd "`dirname $BTCPAY_ENV_FILE`"
docker-compose -f $BTCPAY_DOCKER_COMPOSE up --remove-orphans -d -t 180
docker-compose -f $BTCPAY_DOCKER_COMPOSE up --remove-orphans -d

2
btcpay-update.sh

@ -36,4 +36,4 @@ for scriptname in *.sh; do
done
cd "`dirname $BTCPAY_ENV_FILE`"
docker-compose -f $BTCPAY_DOCKER_COMPOSE up -d --remove-orphans -t 180
docker-compose -f $BTCPAY_DOCKER_COMPOSE up -d --remove-orphans

2
changedomain.sh

@ -20,5 +20,5 @@ echo "BTCPAY_HOST=$BTCPAY_HOST" >> "$BTCPAY_ENV_FILE"
echo "ACME_CA_URI=$ACME_CA_URI" >> "$BTCPAY_ENV_FILE"
cd "`dirname $BTCPAY_ENV_FILE`"
docker-compose -f "$BTCPAY_DOCKER_COMPOSE" up -d -t 180
docker-compose -f "$BTCPAY_DOCKER_COMPOSE" up -d
fi

1
docker-compose-generator/docker-fragments/bitcoin-clightning.yml

@ -3,7 +3,6 @@ version: "3"
services:
clightning_bitcoin:
image: nicolasdorier/clightning:v0.6.2-3
stop_signal: SIGKILL
container_name: btcpayserver_clightning_bitcoin
restart: unless-stopped
environment:

1
docker-compose-generator/docker-fragments/litecoin-clightning.yml

@ -3,7 +3,6 @@ version: "3"
services:
clightning_litecoin:
image: nicolasdorier/clightning:v0.6.2-3
stop_signal: SIGKILL
container_name: btcpayserver_clightning_litecoin
restart: unless-stopped
environment:

Loading…
Cancel
Save