diff options
Diffstat (limited to 'net-p2p/go-ipfs-bin/files/ipfs.init')
-rw-r--r-- | net-p2p/go-ipfs-bin/files/ipfs.init | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net-p2p/go-ipfs-bin/files/ipfs.init b/net-p2p/go-ipfs-bin/files/ipfs.init new file mode 100644 index 000000000000..7b38cf43049b --- /dev/null +++ b/net-p2p/go-ipfs-bin/files/ipfs.init @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# 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 \ + -1 /var/log/ipfs/ipfs.log \ + -2 /var/log/ipfs/ipfs.log" + +depend() { + need net +} |