Shutdown script sequence

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
When in the shutdown process is a shutdown script executed? i.e., if I use midclt to stop a specific app, and, do a shutdown, will it start up when the machine comes up? If the UPS service shuts it down, will it still be executed?

Trying to prevent a few apps from starting up if the machine reboots. If it weren't for power failures, yes, I could manually stop the couple apps first and I know they wouldn't automatically start up. So, wanting it to work in all conditions (other than host crash I suppose).

I simply want to know if the shutdown script is executed before various truenas shutdown processes that might happen before my app stop and thus cause it to not work. I am hoping it's very early in the shutdown process.
 
Top