Help me create an shutdown script

  • Hi guys.
    I hope you can help me.
    I have two servers running OMV 4. One is connected to a UPS (and using the UPS plugin will shutdown during a power failure) and I would like the ability to shut down the second server automatically in the event of power loss.
    I was thinking of running the openmediavault-autoshutdown addon on the second server, have it check for when server one powers off then run the autoshutdown plugin.
    I have an issue though. Server 2 is based on arm (helios4) and I have read the autoshutdown plugin doesn't work.
    Can I get some guidance on how to do this any other way?
    I was thinking of having a script run on server 2, pinging server 1 at regular intervals. If server 1 is off then shutdown server 2. It's a bit crude but I think this might work.


    Has anyone done anything like this or can I get an example?


    Cheers

  • I was looking for something similar, but then to shut down desktop PC's.


    Maybe this will help.


    Haven't yet done anything with it.

    Motherboard: ASRock H270M-ITX/ac
    Processor: Intel Pentium G4500
    Memory: 1x Kingston ValueRam 8GB(1x8GB) DDR4 2133MHz CL1
    System Drive: SANDISK 128 GB SSD X400 M.2
    Data Drives: 4x Seagate NAS 3TB
    Case: Fractal Design Node 304
    Power: Be quiet! PURE POWER 10 400W CM
    UPS: Eaton Ellipse ECO 1600


    OMV version: 4.1.31-1

  • See what utility your UPS offers. I have an APC UPS. And I run apcupsd on my router with the APC plugged into it on a USB port. When the power fails, the daemon sends timely shutdown commands to any machine on the network configured for it.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

  • See what utility your UPS offers. I have an APC UPS. And I run apcupsd on my router with the APC plugged into it on a USB port. When the power fails, the daemon sends timely shutdown commands to any machine on the network configured for it.

    Hey there.
    I'm using a Cyberpower Bric. For the control i'm after I could use PowerPanel® Business Edition Linux software but I have just read that it must be installed on a pentium compatible cpu (my cpu is based on arm).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!