diff options
author | Craig Andrews <candrews@gentoo.org> | 2017-12-23 15:01:11 -0500 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2017-12-24 20:13:10 -0500 |
commit | 1901177f85ac9c93a17db6047947be1e3bdf4207 (patch) | |
tree | 335338a653cf0c556981169c37a81d0a7a5859a1 /net-p2p/cpuminer-opt/files | |
parent | dev-qt/qtcore: remove 4.8.7-r2 (diff) | |
download | gentoo-1901177f85ac9c93a17db6047947be1e3bdf4207.tar.gz gentoo-1901177f85ac9c93a17db6047947be1e3bdf4207.tar.bz2 gentoo-1901177f85ac9c93a17db6047947be1e3bdf4207.zip |
net-p2p/cpuminer-opt: Optimized multi algo CPU miner
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'net-p2p/cpuminer-opt/files')
-rw-r--r-- | net-p2p/cpuminer-opt/files/cpuminer-opt.service | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-p2p/cpuminer-opt/files/cpuminer-opt.service b/net-p2p/cpuminer-opt/files/cpuminer-opt.service new file mode 100644 index 000000000000..90ee849c5bac --- /dev/null +++ b/net-p2p/cpuminer-opt/files/cpuminer-opt.service @@ -0,0 +1,27 @@ +[Unit] +Description=CPU mining daemon for cryptocurrencies +After=network-online.target +AssertFileNotEmpty=/etc/cpuminer-opt/cpuminer-conf.json + +[Service] +ExecStart=/usr/bin/cpuminer --syslog --config=/etc/cpuminer-opt/cpuminer-conf.json +DynamicUser=true +CPUSchedulingPolicy=idle +PrivateTmp=true +ProtectHome=true +ProtectSystem=strict +NoNewPrivileges=true +PrivateDevices=true +CapabilityBoundingSet= +MemoryDenyWriteExecute=true +ProtectKernelModules=true +ProtectKernelTunables=true +ProtectControlGroups=true +RestrictRealtime=true +RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX +RestrictNamespaces=true +PrivateUsers=true +ConfigurationDirectory=cpuminer-opt + +[Install] +WantedBy=multi-user.target |