linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 234 Location: Zedelgem Belgium
|
Posted: Sat Jul 08, 2023 10:03 am Post subject: Execute script just before poweroff during hibernate. |
|
|
installed an apc ups bx2200mi.
configured system to hibernate and power off ups when power is cut.
on occasions the hibernate takes longer so the ups is powered off before the power off of the system.
The power of grace time off this type of ups is 2 minutes.
now a script Quote: | /usr/lib/systemd/system-sleep/ups-kill |
apparently his script is executed before writing to disk which sometime takes more than 2 minutes.
How to run a script after memory is written to disk?[/code] |
|