xmrig-proxy
xmrig-proxy copied to clipboard
linux "shutdown every few days" shutdown proxy
I am using the latest version. I have never made any code changes. A program closes in evry 3-4 days. log file below. config file below
Is it possible to put a shutdown protection? need help in linux too.
[2020-07-12 05:58:36.405] 37.38 kH/s, shares: 40710/1 +8, upstreams: 2, miners: 277 (max 308) +3$ [2020-07-12 05:59:36.464] 49.94 kH/s, shares: 40721/1 +11, upstreams: 2, miners: 278 (max 308) +$ [2020-07-12 06:00:01.062] SIGTERM received, exiting
{ "access-log-file": "./access.log", "access-password": null, "algo-ext": true, "api": { "id": null, "worker-id": "asdasd", }, "http": { "enabled": true, "host": "0.0.0.0", "port": 13, "access-token": "tomattoes", "restricted": true }, "background": false, "bind": [ { "host": "0.0.0.0", "port": 554, "tls": false }, { "host": "::", "port": 556, "tls": false } ], "colors": true, "custom-diff": 0, "custom-diff-stats": false, "donate-level": 0, "log-file": "./logxmrig.log", "mode": "nicehash", "pools": [ { "algo": "astrobwt", "coin": "dero", "url": "dero.miner.rocks:30182", "user": "dERod9SbUP943MsXkiqZJwCCksoCcQMgoCgP5cFVQYfghYBS6qjFAKEHwDTZNT3nFk3AddReessGGe2Xx6sMD2UPmq1V1GVarNoW", "pass": "w=proxy_EU", "rig-id": null, "nicehash": false, "keepalive": true, "enabled": true, "tls": false, "tls-fingerprint": null, "daemon": false, "socks5": null, "self-select": null } ], "retries": 2, "retry-pause": 5, "reuse-timeout": 0, "tls": { "enabled": false, "protocols": null, "cert": null, "cert_key": null, "ciphers": null, "ciphersuites": null, "dhparam": null }, "user-agent": null, "syslog": false, "verbose": false, "watch": true, "workers": true }
temporary solution of the problem run.sh BOF
for (( ; ; )) do ./xmrig-proxy done
EOF
Your xmrig is receiving SIGTERM, you can trap it using bash
You should create a service unit so that you can manage the proxy using the service manager of your distribution which makes it easier to manage (here is some tutorial for example https://linuxconfig.org/how-to-create-systemd-service-unit-in-linux)