Can you try moving: /usr/lib/systemd/system-sleep/autoshutdown-restart to /lib/systemd/system-sleep/autoshutdown-restart as in the 5.1.7 update we move to systemd start-up what than pm-utils. if this work you should see the script (above autoshutdown-restart) write a log entry to /var/log/autoshutdown.log on the restart if this is not logged the the scripts if still falling for some reason. Also can you verify you are using 'systemctl suspend' command.
Please leave feedback if the above works and raze bug in: https://github.com/OpenMediaVa…enmediavault-autoshutdown and i jump on a fix ASAP
I got this working, but not with this solution.
In /usr/lib/systemd/system-sleep/ and in /lib/systemd/system-sleep/ the same file existed.
What I did: chmod +x /lib/systemd/system-sleep/autoshutdown-restart not the /usr/... .
Now it seems to work again.