summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2018-03-26 09:47:45 -0400
committerCraig Andrews <candrews@gentoo.org>2018-03-26 09:51:19 -0400
commit70d2087c783b1bf0e96ce4efc9f05244ab8450fb (patch)
tree0a199c19077458fe2da5fadae7516d14739b5715 /net-p2p/xmr-stak/files
parentmedia-libs/openexr: Strip lto flag (diff)
downloadgentoo-70d2087c783b1bf0e96ce4efc9f05244ab8450fb.tar.gz
gentoo-70d2087c783b1bf0e96ce4efc9f05244ab8450fb.tar.bz2
gentoo-70d2087c783b1bf0e96ce4efc9f05244ab8450fb.zip
net-p2p/xmr-stak: 2.3.0 version bump
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-p2p/xmr-stak/files')
-rw-r--r--net-p2p/xmr-stak/files/xmr-stak-2.3.0.service32
1 files changed, 32 insertions, 0 deletions
diff --git a/net-p2p/xmr-stak/files/xmr-stak-2.3.0.service b/net-p2p/xmr-stak/files/xmr-stak-2.3.0.service
new file mode 100644
index 000000000000..b9515c61f799
--- /dev/null
+++ b/net-p2p/xmr-stak/files/xmr-stak-2.3.0.service
@@ -0,0 +1,32 @@
+[Unit]
+Description=Unified all-in-one Monero miner
+After=network-online.target
+AssertFileNotEmpty=/etc/xmr-stak/main.config
+
+[Service]
+Environment=GPU_FORCE_64BIT_PTR=1
+Environment=GPU_MAX_HEAP_SIZE=100
+Environment=GPU_USE_SYNC_OBJECTS=1
+Environment=GPU_MAX_ALLOC_PERCENT=100
+Environment=GPU_SINGLE_ALLOC_PERCENT=100
+ExecStart=/usr/bin/xmr-stak --cpu /etc/xmr-stak/cpu.config --amd /etc/xmr-stak/amd.config --nvidia /etc/xmr-stak/nvidia.config -c /etc/xmr-stak/main.config -C /etc/xmr-stak/pools.txt
+DynamicUser=true
+Group=video
+CPUSchedulingPolicy=idle
+PrivateTmp=true
+ProtectHome=true
+ProtectSystem=strict
+NoNewPrivileges=true
+CapabilityBoundingSet=
+MemoryDenyWriteExecute=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+ProtectControlGroups=true
+RestrictRealtime=true
+RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
+RestrictNamespaces=true
+PrivateUsers=true
+ConfigurationDirectory=xmr-stak
+
+[Install]
+WantedBy=multi-user.target