Build Laptop Shutdown Script for CentOS 7+ (XCP-NG)

Easy one but I dont have a lot of time at the moment.

At the moment I have a VM Server running XCP-NG on a laptop. I need the server (laptop) to detect when power is lost and run the attached script which will begin the shutdown of all VMs the server is running before it shuts itself down.

I require a script to be built for CentOs7+. The script will:

Check AC power is applied every X minutes.

When AC power is removed from lapotp and battery reaches X percent, run the attached VM shutdown script.

Script must be tested and working properly for milestone to be realeased. Install/config instructions to be provided also.

Skills: Linux, Shell Script, C Programming, PHP, CentOs

See more: linux ups software, xenserver ups monitoring, user script centos, executing shell script centos, script centos, build lead generating script php mysql, execute shell script centos, script centos asterisk freepbx, build freight loads script, shell script centos, run script within script centos, asterisk freepbx install script centos, build betting site script, centos 7 hardening script, centos 7 stig script, cis centos 7 script, centos 7 shutdown script, centos 7 startup script example, centos 7 openvpn script, centos 7 openvpn server easy-rsa 3

About the Employer:
( 19 reviews ) Emerald, Australia

Project ID: #22211504

Awarded to:

$15 AUD in 1 day
(0 Reviews)