Best Regards
Gunnar[/QUOTE]
Hi and welcome to the Forum
You want to ExecStart the script, but you can define the user as well so no need to execute a script, use direct…
/usr/sap/SID/HDB00/HDB has to be started as adm due to some checks and dependencies, so this approach should create a reaction at least.
The SAP HANA instance is running in scope in user slice (sapstartsrv is creating a PAM session for su), which have a fixed timeout of 90s at shutdown. This might be to short for some big HANAs.
There is no easy solution for this. Moving the processes into a service slice or creating an After= dependency to the scope in question.