aboutsummaryrefslogtreecommitdiffstats
path: root/community/kubo/ipfs.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/kubo/ipfs.initd')
-rw-r--r--community/kubo/ipfs.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/kubo/ipfs.initd b/community/kubo/ipfs.initd
new file mode 100644
index 00000000000..3e4421840e3
--- /dev/null
+++ b/community/kubo/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
+}