*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[SOLVED] UPS 'Save & Restart'

Uninterruptable Power Supply service using NUT.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
tongatahu
NewUser
NewUser
Posts: 4
Joined: 05 Mar 2017 10:18
Status: Offline

[SOLVED] UPS 'Save & Restart'

#1

Post by tongatahu » 06 Mar 2017 19:37

Hi,

can someone tell me, which commands/scripts are executed, when I press the button
'Saver & Restart' at 'Services UPS'?

Background:
I'm running a NAS4FREE (10.3.0.3 - Pilingitam (revision 3776)) with an UPS.
With the driver 'blazer_usb' it works fine (FSP 1000).
But sometimes in irregular distances the connection to the UPS is broken.
A 'Save & Restore' solves the problem.

So I want to execute this regularyl by cron.

I would be happy for some hints.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4978
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: UPS 'Save & Restart'

#2

Post by raulfg3 » 06 Mar 2017 21:06

I suposse that

sevice upsd start or service upsd restart


PD: not sure how is named ups service, but service syntax is "service xxxx start/stop/status, and sometimes restart/onestart/onestop"


eg:

Code: Select all

pnas: ~# service tftpd status
tftpd is running as pid 2359.
pnas: ~# service powerd status
powerd is running as pid 2032.
pnas: ~#
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

tongatahu
NewUser
NewUser
Posts: 4
Joined: 05 Mar 2017 10:18
Status: Offline

Re: UPS 'Save & Restart'

#3

Post by tongatahu » 07 Mar 2017 08:28

Thanks a lot,

you gave me the necessary hints.

It's now working with

Code: Select all

service nut restart 
service nut_upslog restart
service nut_upsmon restart

kenZ71
Advanced User
Advanced User
Posts: 403
Joined: 27 Jun 2012 20:18
Location: Northeast, USA
Status: Offline

Re: [SOLVED] UPS 'Save & Restart'

#4

Post by kenZ71 » 08 Mar 2017 02:36

Thanks!! I have the same issue with my Tripp Lite.
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz

Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu

Post Reply

Return to “UPS”