Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
import subprocess | |
import os | |
import re | |
import sys | |
import argparse | |
import httplib, urllib | |
import time | |
""" | |
# place this file at /home/ethos/check_hash_reboot.py |
#!/bin/bash | |
LOG_FILE=/tmp/rigcheck.log | |
if grep -qv active /var/run/ethos/status.file; then | |
echo "$(date) Mining not active or currently starting, exiting..." | tee -a ${LOG_FILE} | |
exit 0 | |
fi | |
NUM_PROC=`ps uax| egrep "ccminer|cgminer-skein|claymore|dstm-zcash|ethminer|ethminer-amd|ewbf-zcash|sgminer-gm|silentarmy|optiminer-zcash" | grep -v "curl" | grep -v "update-miner" | grep -v grep | awk '{print $2}' | wc -l` | |
NUM_GPU=`cat /var/run/ethos/gpulist.raw | wc -l` | |
NEEDS_RESTART=false | |
if [ "${NUM_PROC}" != "${NUM_GPU}" ]; then |
This (and related gists) captures how i created my docker swarm architecture. This is intended mostly for my own notes incase i need to re-creeate anything later! As such expect some typos and possibly even an error...
Each major task has its own gist, this is to help with maitainability long term.