summaryrefslogtreecommitdiff
blob: b3798b2175a56909e4f5184bbf3b14d8731ab044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

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 -m \
                        -1 /var/log/ipfs/ipfs.log \
                        -2 /var/log/ipfs/ipfs.log"

depend() {
	need net
}