diff options
author | Kai Krakow <kai@kaishome.de> | 2019-09-19 23:38:43 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2019-09-28 09:46:14 +0300 |
commit | f02a3bf0a1f4c5d58fc553d9a85fe44229e1be76 (patch) | |
tree | 9fdc199ac1c0c10941f9578a1487347f45d8693e /net-p2p/go-ipfs-bin/files | |
parent | acct-user/ipfs: Add user for net-p2p/go-ipfs-bin (UID 484) (diff) | |
download | gentoo-f02a3bf0a1f4c5d58fc553d9a85fe44229e1be76.tar.gz gentoo-f02a3bf0a1f4c5d58fc553d9a85fe44229e1be76.tar.bz2 gentoo-f02a3bf0a1f4c5d58fc553d9a85fe44229e1be76.zip |
net-p2p/go-ipfs-bin: Bump to 0.4.22
Bump to 0.4.22 and fix systemd unit files on that way. This
revision installs both variants, a user instance unit and a unit
mirroring what the openrc version does (using the "ipfs" user).
Closes: https://bugs.gentoo.org/643634
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Kai Krakow <kai@kaishome.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-p2p/go-ipfs-bin/files')
-rw-r--r-- | net-p2p/go-ipfs-bin/files/ipfs-at.service | 18 | ||||
-rw-r--r-- | net-p2p/go-ipfs-bin/files/ipfs.service | 11 |
2 files changed, 26 insertions, 3 deletions
diff --git a/net-p2p/go-ipfs-bin/files/ipfs-at.service b/net-p2p/go-ipfs-bin/files/ipfs-at.service new file mode 100644 index 000000000000..1ad99bd61bcb --- /dev/null +++ b/net-p2p/go-ipfs-bin/files/ipfs-at.service @@ -0,0 +1,18 @@ +[Unit] +Description=InterPlanetary File System +After=network.target + +[Service] +CPUSchedulingPolicy=batch +EnvironmentFile=-/etc/conf.d/ipfs.%i +ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate +ExecStop=/usr/bin/ipfs shutdown +LimitNOFILE=8192 +PrivateTmp=yes +ProtectSystem=full +Restart=on-failure +Type=simple +User=%i + +[Install] +WantedBy=multi-user.target 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 |