Download Belkin OMNIGUARDSOFTWARE6 User manual
Transcript
Network UPS Tools User Manual 47 / 84 mkdir -p /chroot/nut/dev cp -a /dev/null /chroot/nut/dev Try to start your driver(s) and make sure everything fires up as before. upsdrvctl -r /chroot/nut -u nutdev start Once your drivers are running properly, try starting upsd. upsd -r /chroot/nut -u nutsrv Check your syslog. If nothing is complaining, try running clients like upsc and upsmon. If they seem happy, then you’re done. 9.6.2 symlinks After you do this, you will have two copies of many things, like the confpath and the state path. I recommend deleting the real /var/state/ups, replacing it with a symlink to /chroot/nut/var/state/ups. That will let other programs reference the .pid files without a lot of hassle. You can also do this with your confpath and point /usr/local/ups/etc at /chroot/nut/usr/local/ups/etc unless you’re worried about something hurting the files inside that directory. In that case, you should maintain a master copy and push it into the chroot path after making changes. upsdrvctl itself does not chroot, so the ups.conf still needs to be in the usual confpath. 9.6.3 upsmon This has not yet been applied to upsmon, since it can be quite complicated when there are notifiers that need to be run. One possibility would be for upsmon to have three instances: • privileged root parent that listens for a shutdown command • unprivileged child that listens for notify events • unprivileged chrooted child that does network I/O This one is messy, and may not happen for some time, if ever. 9.6.4 Config files You may now set chroot= and user= in the global section of ups.conf. upsd chroots before opening any config files, so there is no way to add support for that in upsd.conf at the present time. A Glossary This section document the various acronyms used throughout the present documentation. NUT Network UPS Tools. PDU Power Distribution Unit. SCD Solar Controller Device. UPS Uninterruptible Power Supply.