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 -en "Would you like to recreate it? ${BLUE}(y/n)${RESET} "
read reset
case reset in
case $reset in
"Y" | "y")
cat /etc/systemd/system/
sudo rm $SERVICE_FILE
cat /etc/systemd/system/
;;
"N" | "n")
echo "Okay, we'll leave it as is."

5
resources/service-templates/bitcoin

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

Loading…
Cancel
Save