diff options
author | 2022-07-12 15:58:09 +0200 | |
---|---|---|
committer | 2022-08-03 23:54:49 +0100 | |
commit | a3196cc835c7532279355fe56d7564868e43ff15 (patch) | |
tree | 79fbd43da79ca180d00adc2caf7a67121c6911d6 /net-p2p/kubo/files | |
parent | net-p2p/go-ipfs: drop 0.12.2 (diff) | |
download | gentoo-a3196cc835c7532279355fe56d7564868e43ff15.tar.gz gentoo-a3196cc835c7532279355fe56d7564868e43ff15.tar.bz2 gentoo-a3196cc835c7532279355fe56d7564868e43ff15.zip |
net-p2p/*: move go-ipfs -> kubo
Signed-off-by: David Roman <davidroman96@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26371
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-p2p/kubo/files')
-rw-r--r-- | net-p2p/kubo/files/ipfs-at.service | 18 | ||||
-rw-r--r-- | net-p2p/kubo/files/ipfs.confd | 1 | ||||
-rw-r--r-- | net-p2p/kubo/files/ipfs.init | 17 | ||||
-rw-r--r-- | net-p2p/kubo/files/ipfs.service | 19 |
4 files changed, 55 insertions, 0 deletions
diff --git a/net-p2p/kubo/files/ipfs-at.service b/net-p2p/kubo/files/ipfs-at.service new file mode 100644 index 000000000000..c9ce91294177 --- /dev/null +++ b/net-p2p/kubo/files/ipfs-at.service @@ -0,0 +1,18 @@ +[Unit] +Description=InterPlanetary File System +After=network.target + +[Service] +CPUSchedulingPolicy=batch +Environment=IPFS_PATH= +ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate +ExecStop=/usr/bin/ipfs shutdown +LimitNOFILE=8192 +PrivateTmp=yes +ProtectSystem=full +Restart=on-failure +Type=simple +User=%i + +[Install] +WantedBy=multi-user.target diff --git a/net-p2p/kubo/files/ipfs.confd b/net-p2p/kubo/files/ipfs.confd new file mode 100644 index 000000000000..f1e8eb77adf5 --- /dev/null +++ b/net-p2p/kubo/files/ipfs.confd @@ -0,0 +1 @@ +IPFS_PATH=/var/lib/ipfs/.ipfs diff --git a/net-p2p/kubo/files/ipfs.init b/net-p2p/kubo/files/ipfs.init new file mode 100644 index 000000000000..b3798b2175a5 --- /dev/null +++ b/net-p2p/kubo/files/ipfs.init @@ -0,0 +1,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 +} diff --git a/net-p2p/kubo/files/ipfs.service b/net-p2p/kubo/files/ipfs.service new file mode 100644 index 000000000000..12e9d19fd965 --- /dev/null +++ b/net-p2p/kubo/files/ipfs.service @@ -0,0 +1,19 @@ +[Unit] +Description=InterPlanetary File System +After=network.target + +[Service] +CPUSchedulingPolicy=batch +Environment=IPFS_PATH=/var/lib/ipfs/.ipfs +ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate +ExecStop=/usr/bin/ipfs shutdown +Group=ipfs +LimitNOFILE=8192 +PrivateTmp=yes +ProtectSystem=full +Restart=on-failure +Type=simple +User=ipfs + +[Install] +WantedBy=multi-user.target |