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
#/bin/bash | |
while sleep 1; do | |
# get process id for ipfs daemon | |
output=`ps aux | grep "ipfs daemon" | grep -v grep` | |
set -- $output | |
pid=$2 | |
# get timestamp | |
timestamp=$(date +%s) | |
# get process memory usage in kilobytes |
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
package main | |
import ( | |
"context" | |
"log" | |
"net" | |
core "github.com/ipfs/go-ipfs/core" | |
corerepo "github.com/ipfs/go-ipfs/core/corerepo" | |
coreunix "github.com/ipfs/go-ipfs/core/coreunix" |