summarylogtreecommitdiffstats
path: root/xmr-stak.service
diff options
context:
space:
mode:
authorFelix Golatofski2020-06-03 21:27:32 +0200
committerFelix Golatofski2020-06-03 21:27:32 +0200
commitc2d820f21af31a1365e8d5db8d2f60ee1c397341 (patch)
treea2f82680e97c34352373d4f81dbc5f7d0b6fb687 /xmr-stak.service
parenta9b92108a3e8ad2e0b19242ccea88ab30cfc50c9 (diff)
downloadaur-xmr-stak-nvidia-git.tar.gz
Updated: PKGBUILD
Diffstat (limited to 'xmr-stak.service')
-rw-r--r--xmr-stak.service32
1 files changed, 32 insertions, 0 deletions
diff --git a/xmr-stak.service b/xmr-stak.service
new file mode 100644
index 000000000000..97952cca69fa
--- /dev/null
+++ b/xmr-stak.service
@@ -0,0 +1,32 @@
+[Unit]
+Description=Unified all-in-one Monero miner
+After=network-online.target
+AssertFileNotEmpty=/etc/xmr-stak/config.txt
+
+[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.txt --amd /etc/xmr-stak/amd.txt --nvidia /etc/xmr-stak/nvidia.txt -c /etc/xmr-stak/config.txt -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