Skip to content

Commit 10a97a8

Browse files
RubenKelevraWalter Beegle
authored and
Walter Beegle
committed
systemd.service: enable restart on crash and run as system user 'ipfs'
add some optional paramters with short help texts add sysuser.conf
1 parent a3b4199 commit 10a97a8

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

misc/systemd/ipfs.service

+1-28
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
1-
<<<<<<< HEAD
2-
# This file will be overwritten on package upgrades, avoid customizations here.
3-
#
4-
# To make persistant changes, create file in
5-
# "/etc/systemd/system/ipfs.service.d/overwrite.conf" with
6-
# `systemctl edit ipfs.service`. This file will be parsed after this
7-
# file has been parsed.
8-
#
9-
# To overwrite a variable, like ExecStart you have to specify it once
10-
# blank and a second time with a new value, like:
11-
# ExecStart=
12-
# ExecStart=/usr/bin/ipfs daemon --flag1 --flag2
13-
#
14-
# For more info about custom unit files see systemd.unit(5).
15-
161
[Unit]
172
Description=InterPlanetary File System (IPFS) daemon
18-
Documentation=https://docs.ipfs.io/
193
After=network.target
204

215
[Service]
@@ -27,23 +11,12 @@ After=network.target
2711
# enable to specify a higher limit for open files/connections
2812
#LimitNOFILE=1000000
2913

30-
#don't use swap
31-
MemorySwapMax=0
32-
3314
Type=notify
3415
User=ipfs
3516
Group=ipfs
36-
StateDirectory=ipfs
17+
WorkingDirectory=/var/lib/ipfs
3718
ExecStart=/usr/bin/ipfs daemon --init --migrate
3819
Restart=on-failure
39-
=======
40-
[Unit]
41-
Description=IPFS Daemon
42-
43-
[Service]
44-
Type=notify
45-
ExecStart=/usr/bin/ipfs daemon --init --migrate
46-
>>>>>>> implement systemd socket activation
4720
KillSignal=SIGINT
4821

4922
[Install]

0 commit comments

Comments
 (0)