aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-ipfs/ipfs.initd
diff options
context:
space:
mode:
authorOleg Titov <oleg.titov@gmail.com>2018-12-10 11:10:00 -0600
committerKevin Daudt <kdaudt@alpinelinux.org>2019-04-01 19:11:31 +0000
commit0f54ffe2cbac88c9698034e7bd9b68855907032b (patch)
treeb4d93b8b0be9c5109acf2761a768fd17f0c4a031 /testing/go-ipfs/ipfs.initd
parentb03032407111b3cf7b4203858d53e0d353b5ee61 (diff)
downloadaports-0f54ffe2cbac88c9698034e7bd9b68855907032b.tar.bz2
aports-0f54ffe2cbac88c9698034e7bd9b68855907032b.tar.xz
testing/go-ipfs: new aport
https://ipfs.io/ Inter Platnetary File System (IPFS), a peer-to-peer hypermedia distribution protocol
Diffstat (limited to 'testing/go-ipfs/ipfs.initd')
-rw-r--r--testing/go-ipfs/ipfs.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/go-ipfs/ipfs.initd b/testing/go-ipfs/ipfs.initd
new file mode 100644
index 0000000000..3e4421840e
--- /dev/null
+++ b/testing/go-ipfs/ipfs.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+
+export IPFS_PATH=${IPFS_PATH:-/var/lib/ipfs/.ipfs}
+
+pidfile="/run/ipfs.pid"
+command="/usr/bin/ipfs"
+command_args="daemon --enable-gc --migrate"
+command_user="ipfs:ipfs"
+start_stop_daemon_args="--wait 1000 -b \
+ -1 /var/log/ipfs/ipfs.log \
+ -2 /var/log/ipfs/ipfs.log"
+
+depend() {
+ need net
+}