summarylogtreecommitdiffstats
path: root/xmr-stak-rx.service
blob: a918f29e43a3086fcaaa83a0697ff25d09116885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[Unit]
Description=Unified all-in-one Monero miner
After=network-online.target
AssertFileNotEmpty=/etc/xmr-stak-rx/config.txt

[Service]
ExecStart=/usr/bin/xmr-stak-rx --cpu /etc/xmr-stak-rx/cpu.txt -c /etc/xmr-stak-rx/config.txt -C /etc/xmr-stak-rx/pools.txt
DynamicUser=true
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