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