AbsorbingChaos / stx-miner-script

Script and tips to setup a Blockstack Testnet Miner
https://stacks101.com
MIT License
8 stars 7 forks source link

Debug mode and handling data directory #24

Open whoabuddy opened 4 years ago

whoabuddy commented 4 years ago

After submitting logs I found out the default data directory is in /tmp (unless one is set specifically with a flag).

The script currently deletes and downloads the stacks-blockchain repo, but does that affect this data directory? Is a new one created?

Should the script do something with the old one? Extract/compress? Delete?

Does deleting the directory eliminates useful information for troubleshooting?

How much disk space would multiple copies occupy?

Possible fix could be:

Also consider creating a logs or debug-data folder in home directory for multiple runs.

whoabuddy commented 4 years ago

Reboot clears the /tmp directory, too.

whoabuddy commented 3 years ago

Should I set a working_dir in $HOME by default?