Thought I’d share my workflow for informing me when my self-hosted N8N instance is restarted (either on upgrade or because of some issue) it’s really simple, maybe too simple tbh It uses the n8n instance trigger ( thanks to @jon for pointing this out) and just looks to see if the tini process has been restarted in the last 5 minutes again this might be overkill.
You can swap out the slack for any notification platform you like.
Any comments welcome.
Note: Only useful for self hosted-containers n8n releases Customise: Customise the SetConfig node for modifications of SetMessage for the text that will be displayed, you can remove the GetHostName node it just ssh’s to the docker server to get the hostname.
I was wondering if that’d get invoked depending on the style of n8n instance running e.g. ‘own’ and ‘main’ … The ‘tini’ process was the only thing I could be certain would indicate a start of the container.