I hope this finds you well. I realise this comes a bit late, but I had a question precisely about running sendmytip.sh as a systemd service. When I run the script from the console, it has no dramas finding the socket environment variable. I setup a systemd unit as follows:
Description=Pooltool.io sendmytip service
When I start the service, I get an error saying that cardano-cli was unable to locate the socket, like so:
Shelley command failed: query tip Error: Error while looking up environment variable: CARDANO_NODE_SOCKET_PATH Error: “CARDANO_NODE_SOCKET_PATH”
I find this strange, as I also run the cardano-node as a systemd service, and have had no issues with it not finding the environment variable. I have tried to change the sendmytip.sh script to point at the socket directly, but that has not fixed the problem.
I have also noted two more things:
my propagation times are consistently the slowest of the bunch on pooltool (when I manage to run sendmytip). Will this improve as I work on my topology files?
if I run the sendmytip script and put it in the background, it keeps running, but it will not send data to pooltool (eg, my tip stops being updated). Why is that?
Any help is greatly appreciated,