void-packages/srcpkgs/go-ipfs/files/ipfs/run

6 lines
164 B
Bash
Executable File

#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
export IPFS_PATH=${IPFS_PATH:=/var/lib/ipfs}
exec chpst -u _ipfs ipfs daemon ${OPTS:=--init --enable-gc --migrate} 2>&1