forked from mempool/mempool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.crontab
More file actions
14 lines (11 loc) · 754 Bytes
/
elements.crontab
File metadata and controls
14 lines (11 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# start elements on reboot
@reboot sleep 15 ; /usr/local/bin/elementsd -chain=liquidv1 >/dev/null 2>&1
@reboot sleep 25 ; /usr/local/bin/elementsd -chain=liquidtestnet >/dev/null 2>&1
# start electrs on reboot
@reboot sleep 35 ; screen -dmS liquidv1 /elements/electrs/start liquid
@reboot sleep 45 ; screen -dmS liquidtestnet /elements/electrs/start liquidtestnet
# hourly asset update and electrs restart
6 * * * * cd $HOME/asset_registry_db && git pull --quiet origin master && cd $HOME/asset_registry_testnet_db && git pull --quiet origin master && killall electrs
# daily update of popular-scripts
32 03 * * * $HOME/electrs/start liquid popular-scripts >/dev/null 2>&1
33 03 * * * $HOME/electrs/start liquidtestnet popular-scripts >/dev/null 2>&1