mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
implement systemd socket activation
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
15
misc/systemd/ipfs-api.socket
Normal file
15
misc/systemd/ipfs-api.socket
Normal file
@ -0,0 +1,15 @@
|
||||
# Enabling this will *completely override* any API listeners configured in your
|
||||
# config.
|
||||
|
||||
[Unit]
|
||||
Description=IPFS API Socket
|
||||
|
||||
[Socket]
|
||||
Service=ipfs.service
|
||||
FileDescriptorName=io.ipfs.api
|
||||
BindIPv6Only=true
|
||||
ListenStream=127.0.0.1:5001
|
||||
ListenStream=[::1]:5001
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
15
misc/systemd/ipfs-gateway.socket
Normal file
15
misc/systemd/ipfs-gateway.socket
Normal file
@ -0,0 +1,15 @@
|
||||
# Enabling this will *completely override* any Gateway listeners configured in
|
||||
# your config.
|
||||
|
||||
[Unit]
|
||||
Description=IPFS Gateway Socket
|
||||
|
||||
[Socket]
|
||||
Service=ipfs.service
|
||||
FileDescriptorName=io.ipfs.gateway
|
||||
BindIPv6Only=true
|
||||
ListenStream=127.0.0.1:8080
|
||||
ListenStream=[::1]:8080
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
9
misc/systemd/ipfs.service
Normal file
9
misc/systemd/ipfs.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=IPFS Daemon
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/ipfs daemon --init --migrate
|
||||
KillSignal=SIGINT
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Reference in New Issue
Block a user