Opened 13 years ago

Last modified 3 years ago

#33433 new enhancement

nut - 2.6.1 - new port for 'nut-client'

Reported by: gforeman02@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: nut nut-client Cc: miwi@…, cooljeanius (Eric Gallager)
Port: nut

Description

I would like to request a new port for 'nut-client' only install. It should only include functionality needed to monitor a ups on another system.

Attachments (1)

org.networkupstools.upsmon.plist (452 bytes) - added by gforeman02@… 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by gforeman02@…

comment:1 Changed 13 years ago by gforeman02@…

I was able to get this working via the existing 'nut' macport by doing the following:

  1. Setup Macports
  2. port install nut
  3. cp /opt/local/etc/upsmon.conf.sample /opt/local/etc/upsmon.conf
  4. update upsmon.conf as appropriate for your environment
  5. add the plist to /Library/LaunchDaemons
  6. REBOOT. I found that this was the only way to get the plist to load. I am sure there is a better way, but this was easy and worked.
  7. check that the process is running with ps -ef | grep upsmon

If you see something like:

  0   148     1   0  8:17AM ??         0:00.04 /opt/local/sbin/upsmon -D
500   250   148   0  8:18AM ??         0:00.23 /opt/local/sbin/upsmon -D

You should be good since nut is running two processes. One is for root and the other is for the nut user installed via macports.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: miwi@… added

If you're saying that this is functionality already available, along with other components, in the nut port, and you would like a nut-client port that only includes this capability, and not the other components, then this would be an ideal time to use subports, rather than a complete new port.

comment:3 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.