Prevent UPS service from auto starting

m0vts

Cadet
Joined
Nov 4, 2021
Messages
3
Hi All,

I recently put a UPS on my freenas box so I set the UPS service to start automatically at boot and then started it manually. Freenas did a shutdown and will now automatically shut down every time when booted up.

On bootup I can see where it starts the UPS service but as soon as it does this it breifly shows an error and performs a safe shut down like if there was a power failure. I have tried with the UPS USB lead connected and disconnected.

Is there any way I can make changes to stop the service starting automatically?

Note - I just want to stop the service starting automatically, There is no need for full automatic shutdown.

I have access to the USB drives with freenas installed, KVM access, serial and network.

Freenas 11.1U7 on Dell Optiplex 990
UPS - APC Smart-ups 1000
USB connection, no NMC
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Is there any way I can make changes to stop the service starting automatically?
Unclick the "Start Automatically" box on the UPS line on the Services page,
 

m0vts

Cadet
Joined
Nov 4, 2021
Messages
3
Unclick the "Start Automatically" box on the UPS line on the Services page,
Unfortunatly I can't get that far, the GUI doesn't come up before the shutdown. Is there any way it can be done with a serial console or editing a file on the USB stick?
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Oh, yes, now I see the issue, missed it on first read.

During boot I think you can select option 6 to find a previous boot environment. I just tried it here through IPMI on my backup NAS but my keystroke wasn't recognized for some reason, so I cannot presently confirm.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
midclt call service.update ups '{"enable": false}'
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
any idea where I need to type this? I can't get to the shell as the machine shuts down before I can get to it.
Well, if there's no shell, there's no hope for that option. You're going to need to reinstall and re-create your config or somehow get the database off and manipulate it (not documented).
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Well, if there's no shell, there's no hope for that option. You're going to need to reinstall and re-create your config or somehow get the database off and manipulate it (not documented).
What about booting single user or mounting the boot pool on a different system and doing the equivalent of:
Code:
cd /usr/local/sbin
mv upsd upsd.bak
 
Top