E.g., the event that shall cause the HDA to stay awake no matter what can call
{{Code|Code= touch /usr/share/aes-lock/some.lock}}
When the job is finished, the respective event should call
{{Code|Code= rm -f /usr/share/aes-lock/some.lock}}
Make sure to use individual names for the lock files, so that you don't accidentally delete the lock file of another application.
==Selecting ShutdownType==