Re: Run scripts from rc.suspend

From: Peter 'PMc' Much <pmc_at_citylink.dinoex.sub.org>
Date: Tue, 09 May 2023 14:28:46 UTC
On 2023-05-06, Stefan Blachmann <sblachmann@gmail.com> wrote:
> On 5/5/23, Peter 'PMc' Much <pmc@citylink.dinoex.sub.org> wrote:
>> I found there is a rather short timeout, when the susppend script will
>> not complete running child processes and give up (hand over to acpi).
>>
>> OTOH stopping processes may sometimes be fast and sometimes take a while -
>> so the outcome is likely an unpredictable state in the suspend, and some
>> people don't like that.
>
> Can't this timeout delay be made configurable, or just that the
> suspend scripts complete, instead of killing them?
>
There seemed to be some interaction with the acpi, and I didn't bother
to figure out the details. I did put my 'service stop' tasks into
/usr/local/etc/devd/* to act on the ACPI/Suspend event, and that
does currently suit my needs.