diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /net-p2p/xmr-stak-rx/files/xmr-stak-rx.service | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'net-p2p/xmr-stak-rx/files/xmr-stak-rx.service')
-rw-r--r-- | net-p2p/xmr-stak-rx/files/xmr-stak-rx.service | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/net-p2p/xmr-stak-rx/files/xmr-stak-rx.service b/net-p2p/xmr-stak-rx/files/xmr-stak-rx.service new file mode 100644 index 000000000000..d65af4945dfb --- /dev/null +++ b/net-p2p/xmr-stak-rx/files/xmr-stak-rx.service @@ -0,0 +1,32 @@ +[Unit] +Description=Monero RandomX Miner +After=network-online.target +AssertFileNotEmpty=/etc/xmr-stak-rx/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-rx --cpu /etc/xmr-stak-rx/cpu.config --amd /etc/xmr-stak-rx/amd.config --nvidia /etc/xmr-stak-rx/nvidia.config -c /etc/xmr-stak-rx/main.config -C /etc/xmr-stak-rx/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-rx + +[Install] +WantedBy=multi-user.target |