Browse Source

updated btc template

main
Zen 3 years ago
parent
commit
5d4c102c5b
  1. 4
      ingredients/iron
  2. 5
      resources/service-templates/bitcoin

4
ingredients/iron

@ -57,9 +57,11 @@ build_service_from_template() {
echo "Seems like you've already installed ${SERVICE} here!" echo "Seems like you've already installed ${SERVICE} here!"
echo -en "Would you like to recreate it? ${BLUE}(y/n)${RESET} " echo -en "Would you like to recreate it? ${BLUE}(y/n)${RESET} "
read reset read reset
case reset in case $reset in
"Y" | "y") "Y" | "y")
cat /etc/systemd/system/
sudo rm $SERVICE_FILE sudo rm $SERVICE_FILE
cat /etc/systemd/system/
;; ;;
"N" | "n") "N" | "n")
echo "Okay, we'll leave it as is." echo "Okay, we'll leave it as is."

5
resources/service-templates/bitcoin

@ -1,6 +1,7 @@
[Unit] [Unit]
Description=Bitcoin daemon Description=Bitcoin daemon
After=network.target After=network-online.target
Wants=network-online.target
[Service] [Service]
Type=notify Type=notify
@ -10,6 +11,8 @@ ExecStart=BITCOIND --daemonwait --server --pid=HOME/.bitcoin/bitcoind.pid
Type=forking Type=forking
PIDFile=HOME/.bitcoin/bitcoind.pid PIDFile=HOME/.bitcoin/bitcoind.pid
Restart=on-failure Restart=on-failure
TimeoutStartSec=infinity
TimeoutStopSec=600
KillSignal=SIGINT KillSignal=SIGINT
LimitNOFILE=32768 LimitNOFILE=32768

Loading…
Cancel
Save