From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Dec 11 13:50:19 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9704016A41F for ; Sun, 11 Dec 2005 13:50:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E7C643D46 for ; Sun, 11 Dec 2005 13:50:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBBDoJIK076051 for ; Sun, 11 Dec 2005 13:50:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id jBBDoJtI076050; Sun, 11 Dec 2005 13:50:19 GMT (envelope-from gnats) Date: Sun, 11 Dec 2005 13:50:19 GMT Message-Id: <200512111350.jBBDoJtI076050@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Martin Matuska Cc: Subject: Re: ports/89940: [PATCH] Client-only support for sysutils/nut X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martin Matuska List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 13:50:19 -0000 The following reply was made to PR ports/89940; it has been noted by GNATS. From: Martin Matuska To: bug-followup@FreeBSD.org Cc: Joerg Pulz 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@rita (no tty) at 14:37 CET... Communications with UPS mge@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@localhost to /var/log/ups.log (300s intervals) Broadcast Message from root@rita (no tty) at 14:39 CET... Communications with UPS mge@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