Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki

Install APCUPSD

From COCNM
Jump to: navigation, search

System Prep

Obtain and Install Apcupsd

Configure APCUPSD

Configure Apache

  • vi /etc/apache2/sites-available/ups.computerisms.com.conf
  • mkdir /var/log/apache2/ups.computerisms.com/
  • chown root:adm /var/log/apache2/ups.computerisms.com/
  • a2ensite ups.computerisms.com.conf
  • /etc/init.d/apache2 restart
  • chown -R ups:ups /var/www/ups.computerisms.com/
  • chmod 2750 /var/www/ups.computerisms.com/
  • chmod 0770 /var/www/ups.computerisms.com/*
  • samba-tool dns add houselian computerisms.com ups A 192.168.26.10

Start Apcupsd

  • insserv -rf apcupsd
  • rm /etc/init.d/apcupsd
  • mkdir -p -m 1755 /var/service/apcupsd
  • mkdir -p -m 1755 /var/service/apcupsd/log
  • vi /var/service/apcupsd/run
  • ln -s /var/service/multilog.run /var/service/apcupsd/log/run
  • chmod 0755 /var/service/apcupsd/run /var/service/apcupsd/log/run
  • ln -s /var/service/apcupsd/ /service/

Install on Porchlian

Install on Shedlian

Testing

  • Pull the plug on the wall, run the battery dry and make sure every thing shuts down as it should.