diff options
Diffstat (limited to 'xmr-stak.service')
-rw-r--r-- | xmr-stak.service | 32 |
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 |