summaryrefslogtreecommitdiff
path: root/net-p2p/go-ipfs-bin/files/ipfs.service
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/go-ipfs-bin/files/ipfs.service')
-rw-r--r--net-p2p/go-ipfs-bin/files/ipfs.service11
1 files changed, 8 insertions, 3 deletions
diff --git a/net-p2p/go-ipfs-bin/files/ipfs.service b/net-p2p/go-ipfs-bin/files/ipfs.service
index 189ace2fd762..d942d5697b61 100644
--- a/net-p2p/go-ipfs-bin/files/ipfs.service
+++ b/net-p2p/go-ipfs-bin/files/ipfs.service
@@ -3,12 +3,17 @@ Description=InterPlanetary File System
After=network.target
[Service]
+CPUSchedulingPolicy=batch
+EnvironmentFile=-/etc/conf.d/ipfs
ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate
ExecStop=/usr/bin/ipfs shutdown
-Group=%i
-Restart=always
+Group=ipfs
+LimitNOFILE=8192
+PrivateTmp=yes
+ProtectSystem=full
+Restart=on-failure
Type=simple
-User=%i
+User=ipfs
[Install]
WantedBy=multi-user.target