-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for AUTO_ARCHIVE on startup.
- Loading branch information
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
#!/bin/env bash | ||
# | ||
# Starts Plotman, when AUTO_PLOT enabled, on a Chia/Chives fullnode or a plotter instance | ||
# Starts Plotman, when AUTO_PLOT/AUTO_ARCHIVE are enabled, on a Chia/Chives/MMX/Gigahorse fullnode or a plotter instance | ||
# | ||
|
||
if [[ (${mode} =~ ^fullnode.* || ${mode} =~ "plotter") && (${blockchains} == 'chia' || ${blockchains} == 'chives' || ${blockchains} == 'mmx' || ${blockchains} == 'gigahorse') ]]; then | ||
# Start plotting automatically if requested (not the default) | ||
if [ ${AUTO_PLOT,,} = "true" ]; then | ||
nohup plotman plot >> /root/.chia/plotman/logs/plotman.log 2>&1 & | ||
fi | ||
# Start archiving automatically if requested (not the default) | ||
if [ ${AUTO_ARCHIVE,,} = "true" ]; then | ||
nohup plotman archive >> /root/.chia/plotman/logs/archiver.log 2>&1 & | ||
fi | ||
fi |