Skip to content

Commit 1e106b2

Browse files
committed
Improve service file
1 parent e9decee commit 1e106b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roles/ipfs/templates/etc/systemd/system/ipfs.service

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ StateDirectory=ipfs
1010
LimitNOFILE={{ ipfs_fd_max }}
1111
MemorySwapMax=0
1212
Environment="IPFS_FD_MAX={{ ipfs_fd_max}}"
13-
ExecStart=/usr/local/bin/ipfs daemon --migrate
13+
ExecStart=/usr/local/bin/ipfs daemon --migrate {%- if ipfs_enable_gc | default(False) %} --enable-gc{% endif %}
14+
1415
Restart=on-failure
1516
KillSignal=SIGINT
1617

0 commit comments

Comments
 (0)