mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2026-02-02 18:24:20 +01:00
add service files
This commit is contained in:
17
electrs/assets/certbot.service
Normal file
17
electrs/assets/certbot.service
Normal file
@@ -0,0 +1,17 @@
|
||||
# RaspiBlitz systemd service unit for certbot-auto renewal timer
|
||||
|
||||
[Unit]
|
||||
Description=Electrs
|
||||
After=bitcoind.service
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/home/admin/
|
||||
ExecStart=/home/admin/certbot-auto renew
|
||||
|
||||
User=admin
|
||||
Group=admin
|
||||
Type=simple
|
||||
KillMode=process
|
||||
TimeoutSec=60
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
12
electrs/assets/certbot.timer
Normal file
12
electrs/assets/certbot.timer
Normal file
@@ -0,0 +1,12 @@
|
||||
# RaspiBlitz systemd timer unit for certbot-auto renewal service
|
||||
|
||||
[Unit]
|
||||
Description=Certbot-auto renewal service
|
||||
|
||||
[Timer]
|
||||
OnBootSec=20min
|
||||
OnCalendar=*-*-* 4:00:00
|
||||
OnCalendar=*-*-* 16:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
20
electrs/assets/electrs.service
Normal file
20
electrs/assets/electrs.service
Normal file
@@ -0,0 +1,20 @@
|
||||
# RaspiBlitz systemd unit for electrs
|
||||
|
||||
[Unit]
|
||||
Description=Electrs
|
||||
After=bitcoind.service
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/home/admin/electrs
|
||||
ExecStart=/home/admin/electrs/target/release/electrs --index-batch-size=10 --jsonrpc-import --db-dir /mnt/hdd/electrs/db --electrum-rpc-addr="0.0.0.0:50001" --cookie="raspibolt:$PASSWORD_B"
|
||||
|
||||
User=admin
|
||||
Group=admin
|
||||
Type=simple
|
||||
KillMode=process
|
||||
TimeoutSec=60
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -45,4 +45,7 @@ electrum setconfig rpcpassword $PASSWORD_B
|
||||
electrum setconfig rpcuser raspibolt
|
||||
electrum setconfig server $RASPIBLITZ_IP:50001:t
|
||||
|
||||
electrum --oneserver --server=$RASPIBLITZ_IP:50001:t
|
||||
electrum --oneserver --server=$RASPIBLITZ_IP:50001:t
|
||||
|
||||
# to connect through SSL:
|
||||
# electrum --oneserver --server=$YOUR_DOMAIN:50002
|
||||
Reference in New Issue
Block a user