Hi everybody,
I bought an ups that is connected per usb to my proxmox server.
I installed nut, setup the connection etc.
With the standard config, I get a message "on battery" when I take the ups from power.
After 30min I get "low battery" and my proxmox server starts the shutdown process.
So far so good.
However, the ups stays on. This means, the server mainboard sees constant voltage. When the energy is back, the server does not startup automatically.
with the command
the ups shuts down and restarts when the energy is back.
But this is already after 5 seconds. So I am not able to shutdown in this time.
I tried to set override.ups.delay.shutdown in the ups.conf, but this parameter is not editable for my ups Riello IDR600.
I then implemented a custom shutdown script in /etc/systemd/system.
But it seems to be executed at a time, where the drivers for the ups are not loaded anymore. It does not shut down the ups, I forwarded the output to a file. The error message was: "Error: Connection failure: Connection refused".
So I am running out of ideas at the moment....
Does anybody know a way to initiate the "shutdown.return" shortly before my system is shutted down?
Cheers
Mario
I bought an ups that is connected per usb to my proxmox server.
I installed nut, setup the connection etc.
With the standard config, I get a message "on battery" when I take the ups from power.
After 30min I get "low battery" and my proxmox server starts the shutdown process.
So far so good.
However, the ups stays on. This means, the server mainboard sees constant voltage. When the energy is back, the server does not startup automatically.
with the command
Code:
upscmd -u upsmon -p xxx idr600 shutdown.return
But this is already after 5 seconds. So I am not able to shutdown in this time.
I tried to set override.ups.delay.shutdown in the ups.conf, but this parameter is not editable for my ups Riello IDR600.
I then implemented a custom shutdown script in /etc/systemd/system.
Code:
[Unit]
Description=Custom Shutdown Script
[Service]
Type=oneshot
ExecStart=/usr/local/bin/shutdown-script.sh
[Install]
WantedBy=multi-user.target
But it seems to be executed at a time, where the drivers for the ups are not loaded anymore. It does not shut down the ups, I forwarded the output to a file. The error message was: "Error: Connection failure: Connection refused".
So I am running out of ideas at the moment....
Does anybody know a way to initiate the "shutdown.return" shortly before my system is shutted down?
Cheers
Mario