4347l2.text Listing 2. ## apcupsd.conf v1.1 ## # # ========= General configuration parameters ============ # # defines the type of cable that you have. UPSCABLE smart # # defines the type of UPS you have. UPSTYPE smartups # # name of your serial port DEVICE /dev/ttyS0 # # path for serial port lock file LOCKFILE /var/lock # # ======== configuration parameters used during power failures ========== # # If during a power failure, the remaining battery percentage # (as reported by the UPS) is below or equal to BATTERYLEVEL, # apcupsd will initiate a system shutdown. BATTERYLEVEL 5 # # # If during a power failure, the remaining runtime in minutes # (as calculated internally by the UPS) is below or equal to MINUTES, # apcupsd, will initiate a system shutdown. MINUTES 3 # # # If during a power failure, the UPS has run on batteries for TIMEOUT # many seconds or longer, apcupsd will initiate a system shutdown. # A value of 0 disables this timer. TIMEOUT 0 # # # Time in seconds between annoying users to signoff prior to # system shutdown. 0 disables. ANNOY 300 # # Initial delay after power failure before warning users to get # off the system. ANNOYDELAY 60 # # The condition which determines when users are prevented from # logging in during a power failure. NOLOGON disable # # ==== Configuration statements the network information server ========= # # information server. If netstatus is on, a network information # server process will be started for serving the STATUS and # EVENT data over the network (used by CGI programs). NETSERVER on # # port to use for sending STATUS and EVENTS data over the network. # It is not used unless NETSERVER is on. If you change this port, # you will need to change the corresponding value in the cgi directory # and rebuild the cgi programs. SERVERPORT 7000 # # If you want the last few EVENTS to be available over the network # by the network information server, you must define an EVENTSFILE. # Only the last 50 or so events are kept. EVENTSFILE /etc/apcupsd/apcupsd.events # # ===== Configuration statements to control apcupsd system logging ======== # # Time interval in seconds between writing the STATUS file; 0 disables STATTIME 60 # # Location of STATUS file (written to only if STATTIME is non-zero) STATFILE /etc/apcupsd/apcupsd.status # # You probably do not want this on. LOGSTATS off # # Time interval in seconds between writing the DATA records to # the log file. 0 disables. DATATIME 0> # # ========== Configuration statements used if sharing ============= # a UPS and controlling it via the network # # normally standalone unless you share a UPS with multiple machines. UPSCLASS standalone # # Unless you want to share the UPS (power multiple machines). # this should be disable UPSMODE disable # #NETACCESS [ true | false ] Enable Network Access Support NETACCESS true