<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>
</p>
<div class="moz-text-plain" wrap="true" style="font-family:
-moz-fixed; font-size: 12px;" lang="x-unicode">
<pre wrap="">I want to set up a watchdog process to keep checking if my ups (pi_ups)
is reachable.
Something is causing the nut-server to die and the restart script
doesn't work but stopping and starting it does.
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap="">Broadcast message from nut@gw (somewhere) (Mon Jul 23 21:27:05 2018):
UPS pi_ups@localhost is unavailable
</pre>
</blockquote>
<blockquote type="cite" style="color: #000000;">
<pre wrap="">$ upsc -l
Init SSL without certificate database
Error while connecting to localhost, disconnect
Error: Server disconnected
</pre>
</blockquote>
<blockquote type="cite" style="color: #000000;">
<pre wrap="">$ sudo /etc/init.d/nut-server restart
[....] Restarting nut-server (via systemctl): nut-server.serviceJob for nut-server.service failed because a timeout was exceeded.
See "systemctl status nut-server.service" and "journalctl -xe" for details.
failed!
Broadcast message from nut@gw (somewhere) (Mon Jul 23 21:37:12 2018):
UPS pi_ups@localhost is unavailable
^C
</pre>
</blockquote>
<blockquote type="cite" style="color: #000000;">
<pre wrap="">$ sudo /etc/init.d/nut-server stop
[ ok ] Stopping nut-server (via systemctl): nut-server.service.
</pre>
</blockquote>
<blockquote type="cite" style="color: #000000;">
<pre wrap="">$ sudo /etc/init.d/nut-server start
[ ok ] Starting nut-server (via systemctl): nut-server.service.
</pre>
</blockquote>
<blockquote type="cite" style="color: #000000;">
<pre wrap="">$ upsc -l
Init SSL without certificate database
Broadcast message from nut@gw (somewhere) (Mon Jul 23 21:38:27 2018):
Communications with UPS pi_ups@localhost established
pi_ups
</pre>
</blockquote>
</div>
</body>
</html>