Skip to content

Commit b6a9fcf

Browse files
committed
refactor: rename to kubo - systemd part
1 parent 3902c9b commit b6a9fcf

File tree

6 files changed

+33
-33
lines changed

6 files changed

+33
-33
lines changed

misc/systemd/ipfs-sysusers.conf

Lines changed: 0 additions & 3 deletions
This file was deleted.

misc/systemd/ipfs-api.socket renamed to misc/systemd/kubo-api.socket

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# config.
33

44
[Unit]
5-
Description=IPFS API Socket
5+
Description=Kubo's API Socket
66

77
[Socket]
8-
Service=ipfs.service
8+
Service=kubo.service
99
FileDescriptorName=io.ipfs.api
1010
BindIPv6Only=true
1111
ListenStream=127.0.0.1:5001

misc/systemd/ipfs-gateway.socket renamed to misc/systemd/kubo-gateway.socket

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# your config.
33

44
[Unit]
5-
Description=IPFS Gateway Socket
5+
Description=Kubo's Gateway Socket
66

77
[Socket]
8-
Service=ipfs.service
8+
Service=kubo.service
99
FileDescriptorName=io.ipfs.gateway
1010
BindIPv6Only=true
1111
ListenStream=127.0.0.1:8080

misc/systemd/ipfs-hardened.service renamed to misc/systemd/kubo-hardened.service

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
# This file will be overwritten on package upgrades, avoid customizations here.
22
#
33
# To make persistent changes, create file in
4-
# "/etc/systemd/system/ipfs.service.d/overwrite.conf" with
5-
# `systemctl edit ipfs.service`. This file will be parsed after this
4+
# "/etc/systemd/system/kubo.service.d/overwrite.conf" with
5+
# `systemctl edit kubo.service`. This file will be parsed after this
66
# file has been parsed.
77
#
88
# To overwrite a variable, like ExecStart you have to specify it once
99
# blank and a second time with a new value, like:
1010
# ExecStart=
11-
# ExecStart=/usr/bin/ipfs daemon --flag1 --flag2
11+
# ExecStart=/usr/bin/kubo daemon --flag1 --flag2
1212
#
1313
# For more info about custom unit files see systemd.unit(5).
1414

15-
# This service file enables systemd-hardening features compatible with IPFS,
15+
# This service file enables systemd-hardening features compatible with Kubo,
1616
# while breaking compatibility with the fuse-mount function. Use this one only
1717
# if you don't need the fuse-mount functionality.
1818

1919
[Unit]
20-
Description=InterPlanetary File System (IPFS) daemon
20+
Description=Kubo daemon for the InterPlanetary File System (IPFS)
2121
Documentation=https://docs.ipfs.io/
2222
After=network.target
2323

2424
[Service]
2525
# hardening
26-
ReadWritePaths="/var/lib/ipfs/"
26+
ReadWritePaths="/var/lib/kubo/"
2727
NoNewPrivileges=true
2828
ProtectSystem=strict
2929
ProtectKernelTunables=true
@@ -51,26 +51,26 @@ CapabilityBoundingSet=CAP_NET_BIND_SERVICE
5151
# enable for 1-1024 port listening
5252
#AmbientCapabilities=CAP_NET_BIND_SERVICE
5353
# enable to specify a custom path see docs/environment-variables.md for further documentations
54-
#Environment=IPFS_PATH=/custom/ipfs/path
54+
#Environment=IPFS_PATH=/custom/kubo/path
5555
# enable to specify a higher limit for open files/connections
5656
#LimitNOFILE=1000000
5757

5858
#don't use swap
5959
MemorySwapMax=0
6060

61-
# Don't timeout on startup. Opening the IPFS repo can take a long time in some cases (e.g., when
62-
# badger is recovering) and migrations can delay startup.
61+
# Don't timeout on startup. Opening the Kubo repo can take a long time in some cases (e.g., when
62+
# badger is recovering).
6363
#
6464
# Ideally, we'd be a bit smarter about this but there's no good way to do that without hooking
65-
# systemd dependencies deeper into go-ipfs.
65+
# systemd dependencies deeper into Kubo.
6666
TimeoutStartSec=infinity
6767

6868
Type=notify
69-
User=ipfs
70-
Group=ipfs
71-
StateDirectory=ipfs
69+
User=kubo
70+
Group=kubo
71+
StateDirectory=kubo
7272
Environment=IPFS_PATH="${HOME}"
73-
ExecStart=/usr/bin/ipfs daemon --init --migrate
73+
ExecStart=/usr/bin/kubo daemon --enable-gc
7474
Restart=on-failure
7575
KillSignal=SIGINT
7676

misc/systemd/kubo-sysusers.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
u kubo - "Kubo daemon for ipfs" /var/lib/kubo
2+
g kubo -
3+
m kubo kubo

misc/systemd/ipfs.service renamed to misc/systemd/kubo.service

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# This file will be overwritten on package upgrades, avoid customizations here.
22
#
33
# To make persistent changes, create file in
4-
# "/etc/systemd/system/ipfs.service.d/overwrite.conf" with
5-
# `systemctl edit ipfs.service`. This file will be parsed after this
4+
# "/etc/systemd/system/kubo.service.d/overwrite.conf" with
5+
# `systemctl edit kubo.service`. This file will be parsed after this
66
# file has been parsed.
77
#
88
# To overwrite a variable, like ExecStart you have to specify it once
99
# blank and a second time with a new value, like:
1010
# ExecStart=
11-
# ExecStart=/usr/bin/ipfs daemon --flag1 --flag2
11+
# ExecStart=/usr/bin/kubo daemon --flag1 --flag2
1212
#
1313
# For more info about custom unit files see systemd.unit(5).
1414

1515
[Unit]
16-
Description=InterPlanetary File System (IPFS) daemon
16+
Description=Kubo daemon for the InterPlanetary File System (IPFS)
1717
Documentation=https://docs.ipfs.io/
1818
After=network.target
1919

@@ -22,26 +22,26 @@ After=network.target
2222
# enable for 1-1024 port listening
2323
#AmbientCapabilities=CAP_NET_BIND_SERVICE
2424
# enable to specify a custom path see docs/environment-variables.md for further documentations
25-
#Environment=IPFS_PATH=/custom/ipfs/path
25+
#Environment=IPFS_PATH=/custom/kubo/path
2626
# enable to specify a higher limit for open files/connections
2727
#LimitNOFILE=1000000
2828

2929
#don't use swap
3030
MemorySwapMax=0
3131

32-
# Don't timeout on startup. Opening the IPFS repo can take a long time in some cases (e.g., when
33-
# badger is recovering) and migrations can delay startup.
32+
# Don't timeout on startup. Opening the Kubo repo can take a long time in some cases (e.g., when
33+
# badger is recovering).
3434
#
3535
# Ideally, we'd be a bit smarter about this but there's no good way to do that without hooking
36-
# systemd dependencies deeper into go-ipfs.
36+
# systemd dependencies deeper into Kubo.
3737
TimeoutStartSec=infinity
3838

3939
Type=notify
40-
User=ipfs
41-
Group=ipfs
42-
StateDirectory=ipfs
40+
User=kubo
41+
Group=kubo
42+
StateDirectory=kubo
4343
Environment=IPFS_PATH="${HOME}"
44-
ExecStart=/usr/bin/ipfs daemon --init --migrate
44+
ExecStart=/usr/bin/kubo daemon --enable-gc
4545
Restart=on-failure
4646
KillSignal=SIGINT
4747

0 commit comments

Comments
 (0)