ports/89940: [PATCH] Client-only support for sysutils/nut

Martin Matuska martin at matuska.org
Sun Dec 11 13:50:19 UTC 2005


The following reply was made to PR ports/89940; it has been noted by GNATS.

From: Martin Matuska <martin at matuska.org>
To: bug-followup at FreeBSD.org
Cc: Joerg Pulz <Joerg.Pulz at frm2.tum.de>
Subject: Re: ports/89940: [PATCH] Client-only support for sysutils/nut
Date: Sun, 11 Dec 2005 14:49:38 +0100

 Thank you for your patch.
 Your approach is not bad, but:
 
 in my approach, the upsmon is fully independent from the nut.sh startup script,
 and in real, the program is independent, too. You do not need local upsd for
 upsmon and vice versa.
 
 Here is an example:
 
 I have a local UPS and both scripts started (nut.sh and nut_upsmon.sh). I stop
 nut.sh ->
 
 ----------
 rita# /usr/local/etc/rc.d/nut.sh stop
 Network UPS Tools - UPS driver controller 2.0.2
 Stopping UPS: mge
 rita#
 
 Broadcast Message from root at rita
         (no tty) at 14:37 CET...
 
 Communications with UPS mge at localhost lost
 ----------
 
 Then I start the script ->
 
 ----------
 rita# /usr/local/etc/rc.d/nut.sh start
 Starting nut.
 Network UPS Tools - UPS driver controller 2.0.2
 Network UPS Tools - MGE UPS SYSTEMS/SHUT driver 0.64 (2.0.2)
 Detected ellipse premium 1200 [unknown] on /dev/cuad0
 Network UPS Tools upsd 2.0.2
 Connected to UPS [mge]: mge-shut-cuad0
 Synchronizing......done
 Network UPS Tools upslog 2.0.2
 logging status of backups at localhost to /var/log/ups.log (300s intervals)
 
 Broadcast Message from root at rita
         (no tty) at 14:39 CET...
 
 Communications with UPS mge at localhost established
 ----------
 
 As you can see, upsmon was running all the time and re-established its
 connection with the local upsd. It operates indepedently.
 
 What if my upsmon is monitoring more UPS's than only the local one?
 I have such a setup on one of my systems. With your approach it would be
 impossible to stop upsd or upsmon separately using startup scripts.
 
 So I still recommend using two startup scripts.
 The decision is of course in your hands :-)
 
 Thanks,
 Martin



More information about the freebsd-ports-bugs mailing list