I've tried this on my NAS box, works as intended:
Dummy test script /etc/rc.d/try_resume:
```
#!/bin/sh -
# KEYWORD: resume
# KEYWORD: suspend
# REQUIRE: jail
logger "try resume: ${1}"
```
Press the sleep button, optionally wait a minute or so, press wake button:
/var/log/messages
```
May 4 18:54:46 fred root[53062]: try resume: suspend
May 4 18:54:46 fred acpi[53067]: suspend at 20230504 18:54:46
...noise...
May 4 18:57:53 fred acpi[53080]: resumed at 20230504 18:57:53
...noise...
May 4 18:58:09 fred root[53159]: try resume: resume
```