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:
3
misc/systemd/ipfs-sysusers.conf
Normal file
3
misc/systemd/ipfs-sysusers.conf
Normal file
@ -0,0 +1,3 @@
|
||||
u ipfs - "IPFS daemon" /var/lib/ipfs
|
||||
g ipfs -
|
||||
m ipfs ipfs
|
@ -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]
|
||||
|
Reference in New Issue
Block a user