Once you have the config files under /etc/nut set up properly, the
following block can be added to your /etc/rc.local file to start nut.

# Start Nut
if [ -x /usr/local/bin/upsdrvctl ]; then
    echo -n ' nut'
    /usr/local/bin/upsdrvctl start > /dev/null 2>&1
    /usr/local/sbin/upsd > /dev/null 2>&1
    /usr/local/sbin/upsmon > /dev/null 2>&1
fi

The userid running NUT (normally _ups) must have access to the relevant
device nodes. For a UPS connected by RS232, either add _ups to group
"dialer" or change group of the relevant /dev/tty* device to _ups.
For a USB-connected UPS, change the group of the relevant /dev/ugen* and
/dev/usb* devices to _ups; to identify the specific controller and
ugen device names, use "sudo usbdevs -vd".
