$NetBSD: patch-aa,v 1.3 2002/12/01 22:32:26 bouyer Exp $ --- doc/apcupsd.man.orig Fri Feb 2 23:46:33 2001 +++ doc/apcupsd.man Sun Dec 1 13:13:59 2002 @@ -4,19 +4,19 @@ .\" LP paragraph .\" IP indented paragraph .\" TP hanging label -.TH apcupsd 8 "APC UPS management under Linux -- November 1999" +.TH apcupsd 8 "APC UPS management under Unix -- November 1999" .SH NAME -apcupsd \- daemon for most APC's UPS for Linux +apcupsd \- daemon for most APC's UPS for Unix .SH SYNOPSIS -.B /sbin/apcupsd +.B @@PREFIX@@/sbin/apcupsd .br -.B /etc/apcupsd/apccontrol +.B @@SYSCONFDIR@@/apccontrol .br -.B /etc/apcupsd/apcupsd.conf +.B @@SYSCONFDIR@@/apcupsd.conf .br -.B /sbin/apcaccess +.B @@PREFIX@@/sbin/apcaccess .br -.B /sbin/apcnetd +.B @@PREFIX@@/sbin/apcnetd .br .SH DESCRIPTION .LP @@ -29,7 +29,7 @@ above shutdown conditions is met, "apcupsd" will inform users about this fact. -The shutdown is made by script calls to "/etc/apcupsd/apccontrol", which +The shutdown is made by script calls to "@@SYSCONFDIR@@/apccontrol", which is called by "apcupsd". Consequently, no changes to /etc/inittab are necessary. There is no communication between "apcupsd" and init(1) process. Apcupsd modifies the halt script so that at the end of the shutdown @@ -50,22 +50,18 @@ has a network connection with the slaves and sends them information about the UPS status. -.LP -RedHat and S.u.S.E. versions of Linux have direct install support. All -other "FLAVORS" of Linux will need some fussing with to get the install -correct. .SH OPTIONS .TP .B \-c --configure Attempts to configure the UPS EPROM to the values specified in the -configuration file "/etc/apcupsd/apcupsd.conf". +configuration file "@@SYSCONFDIR@@/apcupsd.conf". .TP .B \-d --debug Turns on debugging output for a NETSLAVE or a NETMASTER. .TP .B \-f --config-file Specifies the location of the configuration file. The default -is: /etc/apcupsd/apcupsd.conf +is: @@SYSCONFDIR@@/apcupsd.conf .TP .B \-k --killpower Attempt to turn the UPS off. This option is normally only @@ -74,7 +70,7 @@ .TP .B \-n --rename-ups Attempts to change the UPS name stored in the UPS EPROM -to that specified in your "/etc/apcupsd/apcupsd.conf" file. +to that specified in your "@@SYSCONFDIR@@/apcupsd.conf" file. .TP .B \-u --update-battery-date Attempts to update the battery date stored in the UPS EPROM. Normally @@ -88,12 +84,12 @@ .SH CONFIGURATION It may be necessary to change the configuration information in the file -"/etc/apcupsd/apcupsd.conf" to meet your needs and to correspond to your +"@@SYSCONFDIR@@/apcupsd.conf" to meet your needs and to correspond to your configuration. This file is a plain ASCII file and you can use your favorite editor to change it. .LP Configuration commands in -.B /etc/apcupsd/apcupsd.conf +.B @@SYSCONFDIR@@/apcupsd.conf are: .LP @@ -131,7 +127,7 @@ -- .br Please specify which device is used for UPS communication. -The default is /dev/ttyS[0|1|2|3]. +The default is /dev/tty0[0|1|2|3]. .LP .B LOCKFILE -- @@ -615,13 +611,13 @@ .br 940-0023A Simple Signal UNIX, [BROKEN STILL]. .SH FILES -.B /etc/apcupsd/apcupsd.conf +.B @@SYSCONFDIR@@/apcupsd.conf - configuration file. .br -.B /etc/apcupsd/apcupsd.status +.B /var/run/apcupsd.status - STATUS file .br -.B /etc/apcupsd/apcupsd.events +.B /var/log/apcupsd.events - where up to the last 50 events are stored for the network information server. .SH EVENTS @@ -630,8 +626,8 @@ ... These events are sent to the system log, optionally sent -to the temporary events file (/etc/apcupsd/apcupsd.events), -and they also generate a call to /etc/apcupsd/apccontrol +to the temporary events file (/var/run/apcupsd.events), +and they also generate a call to @@SYSCONFDIR@@/apccontrol which in turn will call any scripts you have placed in the /etc/apcupsd directory.