Create a systemd service unit for it.
See the examples on the man page. The simplest example shows how easy it can be to create a service unit:
[Unit]
Description=Xmrigproxy
[Service]
User=ubuntu
Group=ubuntu
ExecStart=/home/ubuntu/xmrig-proxy-5.5.1/xmrig-proxy-notls
Restart=always
[Install]
WantedBy=multi-user.target
Alias=xmrigproxy.service
Store this unit under /etc/systemd/system/xmrigproxy.service
, then reload systemd to read this unit file with:
$ sudo systemctl daemon-reload
Start the service with:
$ sudo systemctl start xmrigproxy.service
And enable it during startup with:
$ sudo systemctl enable xmrigproxy.service
You can check the status of the service with:
$ systemctl status xmrigproxy.service
View the output of the program by using:
$ journalctl -u xmrigproxy.service -f
Excellent, thank you very much, do you know how you can check the workers ?? or is it imposible when running as a service? thanks again !!