[BACK]Return to MESSAGE-main CVS log [TXT][DIR] Up to [local] / ports / sysutils / apcupsd / pkg

File: [local] / ports / sysutils / apcupsd / pkg / Attic / MESSAGE-main (download)

Revision 1.1.1.1 (vendor branch), Mon Nov 10 13:15:33 2008 UTC (15 years, 7 months ago) by yason
Branch: apcupsd
CVS Tags: import
Changes since 1.1: +0 -0 lines

re-import

To start apcupsd at boot time, you must edit
${SYSCONFDIR}/apcupsd/apcupsd.conf and add the following lines to
${SYSCONFDIR}/rc.local:

if [ -x ${PREFIX}/sbin/apcupsctl]; then
	echo -n ' apcupsd';       ${PREFIX}/sbin/apcupsctl start
fi

This will start apcupsd and use ${SYSCONFDIR}/apcupsd/apcupsd.conf for
the configuration. The ${PREFIX}/sbin/apcupsctl script can be used to
start/stop/restart apcupsd.

For more correct shutdown you should add following lines to
${SYSCONFDIR}/rc.shutdown script:

if [ -f ${SYSCONFDIR}/apcupsd/powerfail ]; then
  echo
  echo "APCUPSD will now power off the UPS"
  echo
  powerdown=YES
  echo
  echo "Please ensure that the UPS has powered off before rebooting"
  echo "Otherwise, the UPS may cut the power during the reboot!!!"
  echo
fi

See http://www.apcupsd.com, apcupsd(8) and apctest(8) for more
information. Note an old age of offline manuals.