Configured nut as I have with Ubuntu, same machine, and enabled startup on F17... So why isn't it starting?
[root@fedora tmp]# systemctl enable nut-server.service
ln -s '/usr/lib/systemd/system/nut-server.service' '/etc/systemd/system/multi-user.target.wants/nut-server.service'
Reboot and test if I can read info from the UPS.
[root@fedora cp]# upsc fedoraups@localhost
Error: Connection failure: Connection refused
Manually start things and test again:
[root@fedora ups]# upsdrvctl start
Network UPS Tools - UPS driver controller 2.6.4
Network UPS Tools - Generic HID driver 0.37 (2.6.4)
USB communication driver 0.31
Using subdriver: CyberPower HID 0.3
[root@fedora ups]# upsd
Network UPS Tools upsd 2.6.4
fopen /var/run/nut/upsd.pid: No such file or directory
listening on 127.0.0.1 port 3493
listening on ::1 port 3493
Connected to UPS [fedoraups]: usbhid-ups-fedoraups
[root@fedora ups]# upsc fedoraups@localhost
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 202
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 4.7
battery.voltage.nominal: 12
device.mfr: CPS
device.model: CP425HG
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.4
driver.version.data: CyberPower HID 0.3
driver.version.internal: 0.37
input.transfer.high: 0
input.transfer.low: 0
input.voltage: 123.0
input.voltage.nominal: 120
output.voltage: 122.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 65
ups.mfr: CPS
ups.model: CP425HG
ups.productid: 0501
ups.realpower.nominal: 255
ups.status: OL LB
ups.timer.shutdown: -60
ups.timer.start: 0
ups.vendorid: 0764
Service startup scripts, if I am reading things correctly it should do the same thing I manually entered above:
[root@fedora cp]# cat /lib/systemd/system/nut-server.service
[Unit]
Description=Network UPS Tools - power devices information server
After=local-fs.target network.target nut-driver.service
Requires=nut-driver.service
Before=nut-monitor.service
[Service]
ExecStart=/usr/sbin/upsd
Type=forking
[Install]
WantedBy=multi-user.target
[root@fedora cp]# cat /lib/systemd/system/nut-driver.service
[Unit]
Description=Network UPS Tools - power device driver controller
After=local-fs.target network.target
StopWhenUnneeded=yes
[Service]
ExecStart=/usr/sbin/upsdrvctl start
ExecStop=/usr/sbin/upsdrvctl stop
Type=forking
Thanks,
Chuck
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org