The community-maintained documentation platform of IPFire

User Tools

Site Tools



APC UPS Daemon (apcupsd) is a tool which monitors power supply equipment manufactured by APC.

info You may wish to investigate the Network UPS tools (NUT) Addon instead of this one. NUT has more features and is capable of supporting UPSes from multiple manufacturers and for multiple client computers connected to one UPS. It is also more maintained than acpupsd.


To install apcupsd open the IPFire Console and type:

pakfire install -y apcupsd

… or install it via the webinterface by the use of Pakfire!

Find more information about apcupsd here

Edit the configuration file

The configuration file will be found under


Its already created by the installer and is documented in detail.

Its important to configure the correct UPS and connection type here.

If NETServer is enabled (NETServer on) you may also check the status from other Windows or Linux machines.

Create the initscript

To create the initscript for apcupsd use an editor (like nano) and add the following:

# Begin $rc_base/init.d/apcupsd
# Based on sysklogd script from LFS-3.1 and earlier.
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
		boot_mesg "Starting apcupsd daemon..."
		loadproc apcupsd
		boot_mesg "Stopping apcupsd daemon..."
		killproc apcupsd
		statusproc /sbin/apcupsd
		echo "Usage: $0 (start|stop|status)"
		exit 1
# End $rc_base/init.d/apcupsd

Then change the file permission with:

chmod 755 /etc/init.d/apcupsd

start the apcups daemon with:

/etc/init.d/apcupsd start

To stop the daemon, type

/etc/init.d/apcupsd stop

on the IPFire Console or via SSH!

Establish the autostart of apcupsd

Enable the autostart

ln -s ../init.d/apcupsd /etc/rc.d/rc3.d/S65apcupsd<br>
ln -s ../init.d/apcupsd /etc/rc.d/rc0.d/K35apcupsd<br>
ln -s ../init.d/apcupsd /etc/rc.d/rc6.d/K35apcupsd<br>

Disable the autostart

rm /etc/rc.d/rc3.d/S65apcupsd<br>
rm /etc/rc.d/rc0.d/K35apcupsd<br>
rm /etc/rc.d/rc6.d/K35apcupsd<br>
addons/apcupsd/start.txt · Last modified: 2018/09/23 19:34 by Jon