@cryptotaxi247 / kubo / commits / dfb52fb3e

systemd.service: enable restart on crash and run as system user 'ipfs' add some optional paramters with short help texts add sysuser.conf

systemd.service: enable restart on crash and run as system user 'ipfs' add some optional paramters with short help texts add sysuser.conf

@RubenKelevra committed Apr 30, 2020 at 17:59 UTC dfb52fb3e2c268296c2aa258a8f2e5401479f323
2 files changed +17 -1
misc/systemd/ipfs-sysusers.conf new
+3
@@ -0,0 +1,3 @@
1 +u ipfs - "IPFS daemon" /var/lib/ipfs
2 +g ipfs -
3 +m ipfs ipfs
misc/systemd/ipfs.service
+14 -1
@@ -1,9 +1,22 @@
1 [Unit]
2 -Description=IPFS Daemon
2 +Description=InterPlanetary File System (IPFS) daemon
3 +After=network.target
4
5 [Service]
6 +
7 +# enable for 1-1024 port listening
8 +#AmbientCapabilities=CAP_NET_BIND_SERVICE
9 +# enable to specify a custom path see docs/environment-variables.md for further documentations
10 +#Environment=IPFS_PATH=/custom/ipfs/path
11 +# enable to specify a higher limit for open files/connections
12 +#LimitNOFILE=1000000
13 +
14 Type=notify
15 +User=ipfs
16 +Group=ipfs
17 +WorkingDirectory=/var/lib/ipfs
18 ExecStart=/usr/bin/ipfs daemon --init --migrate
19 +Restart=on-failure
20 KillSignal=SIGINT
21
22 [Install]