diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-08-08 20:11:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-08-08 20:11:47 +0100 |
commit | f625b9919a60a30f1bd860f7d1b2eac183ced593 (patch) | |
tree | 7543f00925ff7277e31881de0a87801681f6f92f /net-p2p/go-ipfs-bin/files | |
parent | e3872864be25f7421015bef2732fa57c0c9fb726 (diff) |
gentoo resync : 08.08.2018
Diffstat (limited to 'net-p2p/go-ipfs-bin/files')
-rw-r--r-- | net-p2p/go-ipfs-bin/files/ipfs.confd | 1 | ||||
-rw-r--r-- | net-p2p/go-ipfs-bin/files/ipfs.init | 17 | ||||
-rw-r--r-- | net-p2p/go-ipfs-bin/files/ipfs.service | 14 |
3 files changed, 32 insertions, 0 deletions
diff --git a/net-p2p/go-ipfs-bin/files/ipfs.confd b/net-p2p/go-ipfs-bin/files/ipfs.confd new file mode 100644 index 000000000000..f1e8eb77adf5 --- /dev/null +++ b/net-p2p/go-ipfs-bin/files/ipfs.confd @@ -0,0 +1 @@ +IPFS_PATH=/var/lib/ipfs/.ipfs 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 +} diff --git a/net-p2p/go-ipfs-bin/files/ipfs.service b/net-p2p/go-ipfs-bin/files/ipfs.service new file mode 100644 index 000000000000..189ace2fd762 --- /dev/null +++ b/net-p2p/go-ipfs-bin/files/ipfs.service @@ -0,0 +1,14 @@ +[Unit] +Description=InterPlanetary File System +After=network.target + +[Service] +ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate +ExecStop=/usr/bin/ipfs shutdown +Group=%i +Restart=always +Type=simple +User=%i + +[Install] +WantedBy=multi-user.target |