Annotation of ports/sysutils/apcupsd/pkg/MESSAGE-main, Revision 1.1.1.1
1.1 yason 1: To start apcupsd at boot time, you must edit
2: ${SYSCONFDIR}/apcupsd/apcupsd.conf and add the following lines to
3: ${SYSCONFDIR}/rc.local:
4:
5: if [ -x ${PREFIX}/sbin/apcupsctl]; then
6: echo -n ' apcupsd'; ${PREFIX}/sbin/apcupsctl start
7: fi
8:
9: This will start apcupsd and use ${SYSCONFDIR}/apcupsd/apcupsd.conf for
10: the configuration. The ${PREFIX}/sbin/apcupsctl script can be used to
11: start/stop/restart apcupsd.
12:
13: For more correct shutdown you should add following lines to
14: ${SYSCONFDIR}/rc.shutdown script:
15:
16: if [ -f ${SYSCONFDIR}/apcupsd/powerfail ]; then
17: echo
18: echo "APCUPSD will now power off the UPS"
19: echo
20: powerdown=YES
21: echo
22: echo "Please ensure that the UPS has powered off before rebooting"
23: echo "Otherwise, the UPS may cut the power during the reboot!!!"
24: echo
25: fi
26:
27: See http://www.apcupsd.com, apcupsd(8) and apctest(8) for more
28: information. Note an old age of offline manuals.
CVSweb