1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-05-17 06:57:40 +08:00

systemd.service: enable restart on crash and run as system user 'ipfs'

add some optional paramters with short help texts
add sysuser.conf
This commit is contained in:
@RubenKelevra
2020-04-30 17:59:09 +02:00
parent f006fc1647
commit dfb52fb3e2
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,3 @@
u ipfs - "IPFS daemon" /var/lib/ipfs
g ipfs -
m ipfs ipfs

View File

@ -1,9 +1,22 @@
[Unit]
Description=IPFS Daemon
Description=InterPlanetary File System (IPFS) daemon
After=network.target
[Service]
# enable for 1-1024 port listening
#AmbientCapabilities=CAP_NET_BIND_SERVICE
# enable to specify a custom path see docs/environment-variables.md for further documentations
#Environment=IPFS_PATH=/custom/ipfs/path
# enable to specify a higher limit for open files/connections
#LimitNOFILE=1000000
Type=notify
User=ipfs
Group=ipfs
WorkingDirectory=/var/lib/ipfs
ExecStart=/usr/bin/ipfs daemon --init --migrate
Restart=on-failure
KillSignal=SIGINT
[Install]