We already have sysutils/apc-upsd which hasn't been maintained upstream in >10 years, which I intend to rm unless there are objections. From maintainer Kirill Bychkov with various input from myself. Apcupsd can be used for power mangement and controlling most of APC's UPS models. Apcupsd works with most of APC's Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office. During a power failure, apcupsd will inform the users about the power failure and that a shutdown may occur. If power is not restored, a system shutdown will follow when the battery is exhausted, a timeout (seconds) expires, or runtime expires based on internal APC calculations determined by power consumption rates.
13 lines
518 B
Plaintext
13 lines
518 B
Plaintext
$OpenBSD: patch-src_gapcmon_gapcmon_h,v 1.1.1.1 2010/05/25 21:56:33 sthen Exp $
|
|
--- src/gapcmon/gapcmon.h.orig Sun May 16 14:30:57 2010
|
|
+++ src/gapcmon/gapcmon.h Sun May 16 14:29:53 2010
|
|
@@ -69,7 +69,7 @@ G_BEGIN_DECLS
|
|
|
|
#define GAPC_REFRESH_FACTOR_1K 1000 /* micro.secs for visual refresh */
|
|
#define GAPC_REFRESH_FACTOR_ONE_TIME 500
|
|
-#define GAPC_HOST_DEFAULT "localhost"
|
|
+#define GAPC_HOST_DEFAULT "127.0.0.1"
|
|
#define GAPC_PORT_DEFAULT 3551
|
|
#define GAPC_WATT_DEFAULT 600
|
|
#define GAPC_REFRESH_DEFAULT 8.0
|