<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Stuart,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you for your message. I'm not entirely sure which distro I'm using but the RPi is running Debian 9 (Stretch). I also have the most up-to-date version of NUT. I have no idea if that helps? </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
That sounds like a good solution with the systemctl command... I'll look into that.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It's strange that I don't get any errors when I run the nut-server status command but for some reason I don't get the e-mails coming through. Maybe I've forgotten to start some service in the background?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Many thanks</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Gareth</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Stuart D. Gathman <stuart@gathman.org><br>
<b>Sent:</b> 06 May 2019 19:57<br>
<b>To:</b> Gareth Davies<br>
<b>Cc:</b> Charles Lepple; nut-upsuser@alioth-lists.debian.net<br>
<b>Subject:</b> Re: [Nut-upsuser] Data Stale issue</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On Mon, 6 May 2019, Gareth Davies wrote:<br>
<br>
> Just to say, I stopped the driver and started it again and the errors went<br>
> away! However, I turned off power to the UPS but I wasn’t receiving any<br>
> e-mails :( also when I rebooted the RPi the driver/service didn’t start back<br>
> up automatically... <br>
> <br>
> I wonder if you have any thoughts on the above?<br>
<br>
Those are issues with understanding your distro.  For the latter, if <br>
you are using systemd, and your systemd service is called<br>
nut-server.service (as it is in Fedora), you would enable it at boot<br>
with "systemctl enable nut-server".  Systemd automatically starts<br>
prerequistites first, so on Fedora at least, starting nut-server first<br>
starts nut-driver.  You probably also need to start nut-monitor, as<br>
that is the usual place you would configure sending notifications.<br>
<br>
Sorry, I don't have details on Debian.<br>
<br>
-- <br>
               Stuart D. Gathman <stuart@gathman.org><br>
"Confutatis maledictis, flamis acribus addictis" - background song for<br>
a Microsoft sponsored "Where do you want to go from here?" commercial.</div>
</span></font></div>
</div>
</body>
</html>